This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Added more shape inference for tosa ops
ClosedPublic

Authored by rsuderman on Jul 2 2021, 5:01 PM.

Details

Summary

Added shape inference for: matmul, fully connected, argmax, scatter, gather, transpose, slice,
pad, table, concat, and reduction operations.

Also updated reshape for more aggressive reshape inference and renamed shape inference test.

Diff Detail

Event Timeline

rsuderman created this revision.Jul 2 2021, 5:01 PM
rsuderman requested review of this revision.Jul 2 2021, 5:01 PM
rsuderman edited the summary of this revision. (Show Details)Jul 2 2021, 5:02 PM
rsuderman edited the summary of this revision. (Show Details)
rsuderman edited the summary of this revision. (Show Details)
rsuderman edited the summary of this revision. (Show Details)
rsuderman edited the summary of this revision. (Show Details)Jul 2 2021, 5:04 PM
rsuderman added a reviewer: silvas.

Will let @sjarus review this as the detailed shape transfer function review is best done by someone deeply aware of the spec.

sjarus accepted this revision.Jul 8 2021, 5:40 PM

Looks good to me! Sorry for the delay, as I was on vacation yesterday.

This revision is now accepted and ready to land.Jul 8 2021, 5:40 PM
This revision was automatically updated to reflect the committed changes.
mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir