Skip to content

Commit

Permalink
fix merge deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Xu <[email protected]>
  • Loading branch information
Connor-XY committed Jun 13, 2024
1 parent e7d1f6d commit 095d608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialect/ONNX/Transforms/Decompose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ class ReplaceCastLikeByCastPattern : public OpRewritePattern<ONNXCastLikeOp> {

// Replace
Value res;
if (output.getType().cast<ShapedType>().hasRank())
if (mlir::cast<ShapedType>(output.getType()).hasRank())
res = onnx_mlir::OnnxBuilder(rewriter, loc)
.cast(input, saturate, TypeAttr::get(targetType));
else {
Expand Down

0 comments on commit 095d608

Please sign in to comment.