We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8818728 commit 1c3eb32Copy full SHA for 1c3eb32
mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp
@@ -362,7 +362,8 @@ class PadConverter : public OpConversionPattern<tosa::PadOp> {
362
// Setup the default constantAttr.
363
364
Value padConstant = rewriter.createOrFold<tensor::ExtractOp>(
365
- loc, padOp.getPadConst(), ValueRange({}));
+ loc, padOp.getPadConst(),
366
+ ValueRange({rewriter.create<arith::ConstantIndexOp>(loc, 0)}));
367
368
if (!padConstant) {
369
return rewriter.notifyMatchFailure(
0 commit comments