This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Lowering of tosa.gather operations with dynamic dimensions
ClosedPublic

Authored by sabauma on Apr 7 2023, 1:59 PM.

Details

Summary

The existing TOSA->Linalg lowering of tosa.gather only supports gathers
with either a static shape or a single dynamic batch dimension.
This change extends support to arbitrary number of dynamic dimensions on
both the values and indices of the gather operation.

Diff Detail

Event Timeline

sabauma created this revision.Apr 7 2023, 1:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 1:59 PM
sabauma updated this revision to Diff 511929.Apr 8 2023, 2:50 PM

Code cleanup for output dimensions calculation

sabauma updated this revision to Diff 512000.Apr 9 2023, 6:49 AM

Rename dimension inference function to be consistent with similar functions

sabauma published this revision for review.Apr 10 2023, 5:48 AM
rsuderman accepted this revision.Apr 10 2023, 8:44 AM
rsuderman retitled this revision from [tosa] Allow lowering of gather operations with multiple dynamic dimensions to [mlir][tosa] Lowering of tosa.gather operations with dynamic dimensions.
This revision is now accepted and ready to land.Apr 10 2023, 8:46 AM