We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc9e87 commit 1b703d7Copy full SHA for 1b703d7
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
@@ -936,8 +936,12 @@ LogicalResult tosa::ReshapeOp::inferReturnTypeComponents(
936
937
// Determine the length of the dynamic dimension.
938
for (auto &val : newShapeValue) {
939
- if (ShapedType::isDynamic(val))
+ if (ShapedType::isDynamic(val)) {
940
+ if (staticMul == 0) {
941
+ return failure();
942
+ }
943
val = numElements / staticMul;
944
945
}
946
947
inferredReturnShapes.push_back(
0 commit comments