Skip to content

Commit 834e2e9

Browse files
committed
Replace usage of deprecated functions
Signed-off-by: Rickert, Jonas <[email protected]>
1 parent 0019e50 commit 834e2e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dialect/ONNX/Transforms/Decompose.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ struct DecomposeSlicePadPattern : public OpRewritePattern<ONNXPadOp> {
23222322
// difficult, so skip for now
23232323
return failure();
23242324
}
2325-
const auto inputType = padOp.getData().getType().cast<ShapedType>();
2325+
const auto inputType = cast<ShapedType>(padOp.getData().getType());
23262326
if (!inputType.hasStaticShape()) {
23272327
// We need a static shape to calculate the ends for slice
23282328
return failure();
@@ -3644,7 +3644,7 @@ void DecomposeONNXToONNXPass::runOnOperation() {
36443644
}
36453645
#endif
36463646

3647-
if (failed(applyPatternsAndFoldGreedily(function, std::move(patterns))))
3647+
if (failed(applyPatternsGreedily(function, std::move(patterns))))
36483648
signalPassFailure();
36493649
}
36503650

0 commit comments

Comments
 (0)