when operating integer type tensors, tosa elementwise multiplication
requires the element type of result to be a 32-bit integer rather
than the same type as inputs.
Change-Id: Ifd3d7ebd879be5c6b2c8e23aa6d7ef41f39c6d41
Differential D154988
[mlir][tosa][fix] Add proper type checking trait for tosa mul tatwaichong on Jul 11 2023, 10:34 AM. Authored by
Details when operating integer type tensors, tosa elementwise multiplication Change-Id: Ifd3d7ebd879be5c6b2c8e23aa6d7ef41f39c6d41
Diff Detail
Event Timeline
Comment Actions This is a fix to response the mistake introduced in D150472. I propose to create a custom for tosa mul to check if its operands and result meet the spec requirement. Do you think if this a good manner to cope with this demand?
Comment Actions Thanks for working on this!
and I think that freedom has been useful. What do you think? Comment Actions update the trait in a relexed way to allow the result type can be other size but not i32 as long as this is a valid size. Comment Actions Can you rebase this? There is a conflict and probably easiest for you to fix. Then I can land it. |
So this is a Tensor of I32? E.g., could this just be Tosa_Int32Tensor and would this cover that?