Skip to content

Commit 6ef2dda

Browse files
committed
Revert some changes
1 parent 68778fb commit 6ef2dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Tensor/IR/TensorOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,6 @@ LogicalResult GenerateOp::verify() {
11731173
SmallVector<Value> newOperands;
11741174
SmallVector<int64_t> newShape;
11751175
operandsAndShape(resultType, getDynamicExtents(), newOperands, newShape);
1176-
11771176
for (int64_t newdim : newShape) {
11781177
if (newdim < 0 && !ShapedType::isDynamic(newdim))
11791178
return emitError("tensor dimensions must be non-negative");
@@ -1240,6 +1239,7 @@ struct StaticTensorGenerate : public OpRewritePattern<GenerateOp> {
12401239
SmallVector<Value> newOperands;
12411240
SmallVector<int64_t> newShape;
12421241
operandsAndShape(resultType, dynamicExtents, newOperands, newShape);
1242+
12431243
for (int64_t newdim : newShape) {
12441244
// This check also occurs in the verifier, but we need it here too
12451245
// since intermediate passes may have replaced some dynamic dimensions

0 commit comments

Comments
 (0)