File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Dialect/ONNX/Transforms Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments