[Mlir-commits] [mlir] [TOSA] Introduce Tosa_ElementwiseUnaryOp with Type and Shape Enforcement (PR #115784)
Peng Sun
llvmlistbot at llvm.org
Tue Nov 12 10:03:58 PST 2024
psunn wrote:
> I wonder if there should be a `ElementwiseBinaryOp` and `ElementwiseTernaryOp`.
I'm not sure there's a need for that at the moment. I didn't find any additional shared traits or field values that would need to be implemented across the [elementwise binary operators](https://mltech.ml.arm.com/spec/tosa/v1.0_codefreeze/tosa_spec.html#_elementwise_binary_operators).
As for [ternary operators](https://mltech.ml.arm.com/spec/tosa/v1.0_codefreeze/tosa_spec.html#_elementwise_ternary_operators), we currently only have SELECT.
It’s possible we might need these in the future, but they should be addressed in a separate PR if so.
https://github.com/llvm/llvm-project/pull/115784
More information about the Mlir-commits
mailing list