@@ -2686,7 +2686,7 @@ void mlir::torch::onnx_c::populateDefaultDomainQtoZ(
2686
2686
});
2687
2687
patterns.onOp (
2688
2688
" Resize" , 11 , [](OpBinder binder, ConversionPatternRewriter &rewriter) {
2689
- Torch::ValueTensorType resultType ;
2689
+ Torch::ValueTensorType outputTensor_type ;
2690
2690
llvm::SmallVector<Value> operands;
2691
2691
std::string mode, nearest_mode, coordTfMode;
2692
2692
int64_t antialias, exclude_outside;
@@ -2705,7 +2705,7 @@ void mlir::torch::onnx_c::populateDefaultDomainQtoZ(
2705
2705
}
2706
2706
2707
2707
if (binder.tensorOperandsList (operands) ||
2708
- binder.tensorResultType (resultType ) ||
2708
+ binder.tensorResultType (outputTensor_type ) ||
2709
2709
binder.customOpNameStringAttr (mode, " mode" , " nearest" ) ||
2710
2710
binder.customOpNameStringAttr (
2711
2711
coordTfMode, " coordinate_transformation_mode" , " half_pixel" ) ||
@@ -2829,7 +2829,7 @@ void mlir::torch::onnx_c::populateDefaultDomainQtoZ(
2829
2829
}
2830
2830
rewriter
2831
2831
.replaceOpWithNewOp <Torch::Aten__InterpolateSizeListScaleListOp>(
2832
- binder.op , resultType , inputTensor, sizesValueList,
2832
+ binder.op , outputTensor_type , inputTensor, sizesValueList,
2833
2833
scalesValueList, modeStrValue,
2834
2834
/* AnyTorchOptionalBoolType:$align_corners */ alignCorners,
2835
2835
/* AnyTorchOptionalBoolType:$recompute_scale_factor */ noneVal,
0 commit comments