[all-commits] [llvm/llvm-project] 783b4d: [mlir][tosa] Check for 0-ranked-tensors during fol...
Sarthak Gupta via All-commits
all-commits at lists.llvm.org
Fri Oct 20 04:03:37 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 783b4d91c73c992fad32e045ce3265b01028fc99
https://github.com/llvm/llvm-project/commit/783b4d91c73c992fad32e045ce3265b01028fc99
Author: Sarthak Gupta <sarthakgpt95 at gmail.com>
Date: 2023-10-20 (Fri, 20 Oct 2023)
Changed paths:
M mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
M mlir/test/Dialect/Tosa/canonicalize.mlir
Log Message:
-----------
[mlir][tosa] Check for 0-ranked-tensors during fold (#68512)
Fixes https://github.com/llvm/llvm-project/issues/67761
Trying `getDimSize()` before checking for 0-ranked-tensors throws assert
errors. This PR ensures that it is checked for.
Or should we throw an error if we have a 0-ranked-tensor in a tosa
operation?
More information about the All-commits
mailing list