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 e7d1f6d commit 095d608Copy full SHA for 095d608
src/Dialect/ONNX/Transforms/Decompose.cpp
@@ -946,7 +946,7 @@ class ReplaceCastLikeByCastPattern : public OpRewritePattern<ONNXCastLikeOp> {
946
947
// Replace
948
Value res;
949
- if (output.getType().cast<ShapedType>().hasRank())
+ if (mlir::cast<ShapedType>(output.getType()).hasRank())
950
res = onnx_mlir::OnnxBuilder(rewriter, loc)
951
.cast(input, saturate, TypeAttr::get(targetType));
952
else {
0 commit comments