Skip to content

Commit

Permalink
Avoid deprecated .dyn_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mgehre-amd committed Sep 9, 2024
1 parent 273c7aa commit e5e5484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7354,7 +7354,7 @@ class DecomposeAtenArcSinCosOp : public OpRewritePattern<ArcASinCosOp> {
LogicalResult matchAndRewrite(ArcASinCosOp op,
PatternRewriter &rewriter) const override {
Location loc = op.getLoc();
auto outType = op.getType().template dyn_cast<BaseTensorType>();
auto outType = dyn_cast<BaseTensorType>(op.getType());
if (!outType)
return rewriter.notifyMatchFailure(
op, "Only tensor types input are currently supported");
Expand Down

0 comments on commit e5e5484

Please sign in to comment.