Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlir/include/mlir/Dialect/Tensor/Utils/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace tensor {
// for _static_ dimensions.
PadOp createPadHighOp(RankedTensorType resType, Value source, Value pad,
bool nofold, Location loc, OpBuilder &builder,
SmallVector<Value> dynOutDims = {});
ValueRange dynOutDims = std::nullopt);

// Creates dim ops for each dynamic dimension of the ranked tensor argument and
// returns these as values.
Expand Down
3 changes: 1 addition & 2 deletions mlir/lib/Dialect/Tensor/Utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ using namespace mlir::tensor;

PadOp mlir::tensor::createPadHighOp(RankedTensorType resType, Value source,
Value pad, bool nofold, Location loc,
OpBuilder &b,
SmallVector<Value> dynOutDims) {
OpBuilder &b, ValueRange dynOutDims) {

// This assumption simplifies the following logic without limiting what's
// required _today_. If needed, we can relax it in the future.
Expand Down
Loading