File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
mlir/lib/Dialect/Tensor/IR Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1173,7 +1173,6 @@ LogicalResult GenerateOp::verify() {
1173
1173
SmallVector<Value> newOperands;
1174
1174
SmallVector<int64_t > newShape;
1175
1175
operandsAndShape (resultType, getDynamicExtents (), newOperands, newShape);
1176
-
1177
1176
for (int64_t newdim : newShape) {
1178
1177
if (newdim < 0 && !ShapedType::isDynamic (newdim))
1179
1178
return emitError (" tensor dimensions must be non-negative" );
@@ -1240,6 +1239,7 @@ struct StaticTensorGenerate : public OpRewritePattern<GenerateOp> {
1240
1239
SmallVector<Value> newOperands;
1241
1240
SmallVector<int64_t > newShape;
1242
1241
operandsAndShape (resultType, dynamicExtents, newOperands, newShape);
1242
+
1243
1243
for (int64_t newdim : newShape) {
1244
1244
// This check also occurs in the verifier, but we need it here too
1245
1245
// since intermediate passes may have replaced some dynamic dimensions
You can’t perform that action at this time.
0 commit comments