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 12, 2024
1 parent 8234c3b commit db993ce
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 db993ce

Please sign in to comment.