This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Fix `tosa.reshape` folder for quantized constants
ClosedPublic

Authored by rsuderman on Apr 24 2023, 4:43 PM.

Details

Summary

It is possible for tosa.const to have a quantized return type.
In these cases we need to retain the expected result type to avoid
potential type mismatches further in the model.

Diff Detail

Event Timeline

rsuderman created this revision.Apr 24 2023, 4:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 4:43 PM
rsuderman requested review of this revision.Apr 24 2023, 4:43 PM
cota accepted this revision.Apr 24 2023, 5:51 PM
This revision is now accepted and ready to land.Apr 24 2023, 5:51 PM
This revision was landed with ongoing or failed builds.Apr 24 2023, 6:14 PM
This revision was automatically updated to reflect the committed changes.
mehdi_amini added inline comments.Apr 25 2023, 12:15 AM
mlir/test/Dialect/Tosa/canonicalize.mlir
369

This CHECK is ignored, the {literal} modifier does not seem like the right syntax.