forked from OSchip/llvm-project
[mlir][linalg] Fix PadTensorOp constructor
Differential Revision: https://reviews.llvm.org/D104510
This commit is contained in:
parent
2a629efc74
commit
6f665cd53d
|
@ -898,7 +898,7 @@ void PadTensorOp::build(OpBuilder &b, OperationState &result, Value source,
|
||||||
ArrayRef<NamedAttribute> attrs) {
|
ArrayRef<NamedAttribute> attrs) {
|
||||||
auto sourceType = source.getType().cast<RankedTensorType>();
|
auto sourceType = source.getType().cast<RankedTensorType>();
|
||||||
unsigned rank = sourceType.getRank();
|
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);
|
build(b, result, source, staticVector, staticVector, low, high, attrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue