Skip to content
Merged
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ class PadConverter : public OpConversionPattern<tosa::PadOp> {
// Setup the default constantAttr.

Value padConstant = rewriter.createOrFold<tensor::ExtractOp>(
loc, padOp.getPadConst(), ValueRange({}));
loc, padOp.getPadConst(),
ValueRange({rewriter.create<arith::ConstantIndexOp>(loc, 0)}));

if (!padConstant) {
return rewriter.notifyMatchFailure(
Expand Down