[mlir][linalg] Fix PadTensorOp constructor

Differential Revision: https://reviews.llvm.org/D104510
This commit is contained in:
Matthias Springer 2021-06-18 17:34:30 +09:00
parent 2a629efc74
commit 6f665cd53d
1 changed files with 1 additions and 1 deletions

View File

@ -898,7 +898,7 @@ void PadTensorOp::build(OpBuilder &b, OperationState &result, Value source,
ArrayRef<NamedAttribute> attrs) {
auto sourceType = source.getType().cast<RankedTensorType>();
unsigned rank = sourceType.getRank();
SmallVector<int64_t, 4> staticVector(ShapedType::kDynamicSize, rank);
SmallVector<int64_t, 4> staticVector(rank, ShapedType::kDynamicSize);
build(b, result, source, staticVector, staticVector, low, high, attrs);
}