Skip to content

Commit

Permalink
[Stablehlo] fix template typo (#3842)
Browse files Browse the repository at this point in the history
I think we should use template parameters. @yyp0 @qingyunqu
  • Loading branch information
Xinyu302 authored Nov 1, 2024
1 parent 7f9f99c commit 3dbeda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Conversion/TorchToStablehlo/Basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ class ConvertAtenPowOp : public OpConversionPattern<AtenOpT> {
matchAndRewrite(AtenOpT op, OpAdaptor adaptor,
ConversionPatternRewriter &rewriter) const override {
auto outType = cast<TensorType>(
OpConversionPattern<AtenPowScalarOp>::getTypeConverter()->convertType(
OpConversionPattern<AtenOpT>::getTypeConverter()->convertType(
op.getType()));

Type outElemTy = outType.getElementType();
Expand Down

0 comments on commit 3dbeda9

Please sign in to comment.