This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Improve size inference in tiling tensor.pack ops.
ClosedPublic

Authored by hanchung on Feb 22 2023, 5:02 PM.

Details

Summary

The sizes of input operands need being clampled only when there are
incomplete tiles, i.e., the padding value is set. The shape input slice
can be folded into constants when they are static shapes and tiling
sizes.

Diff Detail

Event Timeline

hanchung created this revision.Feb 22 2023, 5:02 PM
hanchung requested review of this revision.Feb 22 2023, 5:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 5:02 PM
chelini accepted this revision.Feb 23 2023, 9:31 AM

Thanks, looks good to me.

This revision is now accepted and ready to land.Feb 23 2023, 9:31 AM