Page MenuHomePhabricator

[mlir][tosa] Materialize padding separate from tosa operations.
Needs ReviewPublic

Authored by rsuderman on Nov 5 2021, 4:37 PM.

Details

Reviewers
sjarus
NatashaKnk
Summary

Some TOSA operations have implicit/included padding as part of the operation.
These padding cases are normally materialized to padding during the
tosa-to-linalg pass. This makes canonicalizing / optimizing padding cases
difficult as it must be performed at the linalg level.

Splitting the padding earlier allow TOSA specific optimization of padding.

Diff Detail

Event Timeline

rsuderman created this revision.Nov 5 2021, 4:37 PM
rsuderman requested review of this revision.Nov 5 2021, 4:37 PM
rsuderman updated this revision to Diff 385216.Nov 5 2021, 4:38 PM

Fixed clang-tidy issue.

rsuderman updated this revision to Diff 385997.Nov 9 2021, 3:49 PM

Fixed padd attr type.

rsuderman updated this revision to Diff 385999.Nov 9 2021, 3:54 PM

Updated test and other padding type.