Skip to content

Commit

Permalink
Add a info cast to prims.squeeze decomposition
Browse files Browse the repository at this point in the history
  • Loading branch information
zjgarvey committed Oct 31, 2024
1 parent a6292f3 commit 985ddfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8816,7 +8816,8 @@ class DecomposePrimsSqueezeOp : public OpRewritePattern<PrimsSqueezeOp> {
}
result = *squeezeTensorInfo;
}
rewriter.replaceOp(op, result);
rewriter.replaceOpWithNewOp<Torch::TensorStaticInfoCastOp>(op, op.getType(),
result);
return success();
}
};
Expand Down

0 comments on commit 985ddfa

Please sign in to comment.