[Mlir-commits] [mlir] [mlir][tosa] Fix crash in inferReturnTypes for ReduceOps (PR #69843)
Eric Kunze
llvmlistbot at llvm.org
Mon Oct 23 08:35:32 PDT 2023
eric-k256 wrote:
The spec calls for an error if axis > the rank of the input tensor: https://www.mlplatform.org/tosa/tosa_spec.html#_reduce_all
`ERROR_IF(axis < 0 || axis >= rank(shape1));`
Adding it as a verifier for the op seems like a good option.
https://github.com/llvm/llvm-project/pull/69843
More information about the Mlir-commits
mailing list