@@ -3019,7 +3019,7 @@ def aten_ops_pad(
3019
3019
0 : (TRTTensor ,),
3020
3020
}
3021
3021
)
3022
- def aten_ops_upsample_nearest1d_default (
3022
+ def aten_ops_upsample_nearest1d (
3023
3023
ctx : ConversionContext ,
3024
3024
target : Target ,
3025
3025
args : Tuple [Argument , ...],
@@ -3045,7 +3045,7 @@ def aten_ops_upsample_nearest1d_default(
3045
3045
0 : (TRTTensor ,),
3046
3046
}
3047
3047
)
3048
- def aten_ops_upsample_nearest2d_default (
3048
+ def aten_ops_upsample_nearest2d (
3049
3049
ctx : ConversionContext ,
3050
3050
target : Target ,
3051
3051
args : Tuple [Argument , ...],
@@ -3071,7 +3071,7 @@ def aten_ops_upsample_nearest2d_default(
3071
3071
0 : (TRTTensor ,),
3072
3072
}
3073
3073
)
3074
- def aten_ops_upsample_nearest3d_default (
3074
+ def aten_ops_upsample_nearest3d (
3075
3075
ctx : ConversionContext ,
3076
3076
target : Target ,
3077
3077
args : Tuple [Argument , ...],
@@ -3091,41 +3091,13 @@ def aten_ops_upsample_nearest3d_default(
3091
3091
)
3092
3092
3093
3093
3094
- @dynamo_tensorrt_converter (torch .ops .aten .upsample_nearest1d .vec )
3095
- @dynamo_tensorrt_converter (torch .ops .aten .upsample_nearest2d .vec )
3096
- @dynamo_tensorrt_converter (torch .ops .aten .upsample_nearest3d .vec )
3097
- @enforce_tensor_types (
3098
- {
3099
- 0 : (TRTTensor ,),
3100
- }
3101
- )
3102
- def aten_ops_upsample_nearest_vec (
3103
- ctx : ConversionContext ,
3104
- target : Target ,
3105
- args : Tuple [Argument , ...],
3106
- kwargs : Dict [str , Argument ],
3107
- name : str ,
3108
- ) -> Union [TRTTensor , Sequence [TRTTensor ]]:
3109
- return impl .upsample .upsample (
3110
- ctx ,
3111
- target ,
3112
- SourceIR .ATEN ,
3113
- name ,
3114
- args [0 ],
3115
- size = args_bounds_check (args , 1 ),
3116
- scale_factor = args_bounds_check (args , 2 ),
3117
- mode = "nearest" ,
3118
- align_corners = False ,
3119
- )
3120
-
3121
-
3122
3094
@dynamo_tensorrt_converter (torch .ops .aten .upsample_linear1d .default )
3123
3095
@enforce_tensor_types (
3124
3096
{
3125
3097
0 : (TRTTensor ,),
3126
3098
}
3127
3099
)
3128
- def aten_ops_upsample_linear1d_default (
3100
+ def aten_ops_upsample_linear1d (
3129
3101
ctx : ConversionContext ,
3130
3102
target : Target ,
3131
3103
args : Tuple [Argument , ...],
@@ -3151,7 +3123,7 @@ def aten_ops_upsample_linear1d_default(
3151
3123
0 : (TRTTensor ,),
3152
3124
}
3153
3125
)
3154
- def aten_ops_upsample_bilinear2d_default (
3126
+ def aten_ops_upsample_bilinear2d (
3155
3127
ctx : ConversionContext ,
3156
3128
target : Target ,
3157
3129
args : Tuple [Argument , ...],
@@ -3177,7 +3149,7 @@ def aten_ops_upsample_bilinear2d_default(
3177
3149
0 : (TRTTensor ,),
3178
3150
}
3179
3151
)
3180
- def aten_ops_upsample_trilinear3d_default (
3152
+ def aten_ops_upsample_trilinear3d (
3181
3153
ctx : ConversionContext ,
3182
3154
target : Target ,
3183
3155
args : Tuple [Argument , ...],
@@ -3197,41 +3169,13 @@ def aten_ops_upsample_trilinear3d_default(
3197
3169
)
3198
3170
3199
3171
3200
- @dynamo_tensorrt_converter (torch .ops .aten .upsample_linear1d .vec )
3201
- @dynamo_tensorrt_converter (torch .ops .aten .upsample_bilinear2d .vec )
3202
- @dynamo_tensorrt_converter (torch .ops .aten .upsample_trilinear3d .vec )
3203
- @enforce_tensor_types (
3204
- {
3205
- 0 : (TRTTensor ,),
3206
- }
3207
- )
3208
- def aten_ops_upsample_linear_vec (
3209
- ctx : ConversionContext ,
3210
- target : Target ,
3211
- args : Tuple [Argument , ...],
3212
- kwargs : Dict [str , Argument ],
3213
- name : str ,
3214
- ) -> Union [TRTTensor , Sequence [TRTTensor ]]:
3215
- return impl .upsample .upsample (
3216
- ctx ,
3217
- target ,
3218
- SourceIR .ATEN ,
3219
- name ,
3220
- args [0 ],
3221
- size = args_bounds_check (args , 1 ),
3222
- scale_factor = args_bounds_check (args , 3 ),
3223
- mode = "linear" ,
3224
- align_corners = args [2 ],
3225
- )
3226
-
3227
-
3228
3172
@dynamo_tensorrt_converter (torch .ops .aten .upsample_bicubic2d .default )
3229
3173
@enforce_tensor_types (
3230
3174
{
3231
3175
0 : (TRTTensor ,),
3232
3176
}
3233
3177
)
3234
- def aten_ops_upsample_bicubic_default (
3178
+ def aten_ops_upsample_bicubic2d (
3235
3179
ctx : ConversionContext ,
3236
3180
target : Target ,
3237
3181
args : Tuple [Argument , ...],
@@ -3251,32 +3195,6 @@ def aten_ops_upsample_bicubic_default(
3251
3195
)
3252
3196
3253
3197
3254
- @dynamo_tensorrt_converter (torch .ops .aten .upsample_bicubic2d .vec )
3255
- @enforce_tensor_types (
3256
- {
3257
- 0 : (TRTTensor ,),
3258
- }
3259
- )
3260
- def aten_ops_upsample_bicubic_vec (
3261
- ctx : ConversionContext ,
3262
- target : Target ,
3263
- args : Tuple [Argument , ...],
3264
- kwargs : Dict [str , Argument ],
3265
- name : str ,
3266
- ) -> Union [TRTTensor , Sequence [TRTTensor ]]:
3267
- return impl .upsample .upsample (
3268
- ctx ,
3269
- target ,
3270
- SourceIR .ATEN ,
3271
- name ,
3272
- args [0 ],
3273
- size = args_bounds_check (args , 1 ),
3274
- scale_factor = args_bounds_check (args , 3 ),
3275
- mode = "bicubic" ,
3276
- align_corners = args [2 ],
3277
- )
3278
-
3279
-
3280
3198
@dynamo_tensorrt_converter (
3281
3199
torch .ops .aten .topk .default , capability_validator = topk_validator
3282
3200
)
0 commit comments