Skip to content

Commit de0bdb9

Browse files
Update mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
Co-authored-by: Fabian Mora <fmora.dev@gmail.com>
1 parent bfabf8d commit de0bdb9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

mlir/include/mlir/Interfaces/InferTypeOpInterface.td

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,8 @@ def ReifyRankedShapedTypeOpInterface :
366366

367367
`reifiedReturnShapes` is populated with one vector per op result. Each
368368
of those vectors contains an OpFoldResult for each dimension of the
369-
shaped type. In case a dimension in the type is static, the
370-
corresponding entry is an IntegerAttr. Otherwise, it is a Value. The
371-
given builder may be used to insert ops that compute result shapes.
369+
shaped type.
370+
The given builder may be used to insert ops that compute result shapes.
372371

373372
If the shape of a particular result cannot be computed it must be empty.
374373
}],

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3809,7 +3809,6 @@ PadOp::reifyResultShapes(OpBuilder &b,
38093809
Value dim = b.createOrFold<tensor::DimOp>(
38103810
loc, getSource(), b.create<arith::ConstantIndexOp>(loc, i));
38113811

3812-
affine::AffineBuilder ab(b, loc);
38133812
AffineExpr d0, d1, d2;
38143813
bindDims(b.getContext(), d0, d1, d2);
38153814
reifiedReturnShapes[0][i] = affine::makeComposedFoldedAffineApply(

0 commit comments

Comments
 (0)