File tree 1 file changed +22
-3
lines changed
py/torch_tensorrt/dynamo/conversion
1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -357,14 +357,14 @@ def aten_ops_softmax(
357
357
358
358
@dynamo_tensorrt_converter (
359
359
torch .ops .aten .split .Tensor , capability_validator = dynamic_unsupported_with_args ([1 ])
360
- )
360
+ ) # type: ignore[misc]
361
361
@dynamo_tensorrt_converter (
362
362
torch .ops .aten .split .sizes , capability_validator = dynamic_unsupported_with_args ([1 ])
363
- )
363
+ ) # type: ignore[misc]
364
364
@dynamo_tensorrt_converter (
365
365
torch .ops .aten .split_with_sizes .default ,
366
366
capability_validator = dynamic_unsupported_with_args ([1 ]),
367
- )
367
+ ) # type: ignore[misc]
368
368
def aten_ops_split (
369
369
network : TRTNetwork ,
370
370
target : Target ,
@@ -1378,3 +1378,22 @@ def aten_ops_linear(
1378
1378
weight = args [1 ],
1379
1379
bias = args_bounds_check (args , 2 , None ),
1380
1380
)
1381
+
1382
+
1383
+ @dynamo_tensorrt_converter (torch .ops .aten .argmax .default ) # type: ignore[misc]
1384
+ def aten_ops_argmax (
1385
+ network : TRTNetwork ,
1386
+ target : Target ,
1387
+ args : Tuple [Argument , ...],
1388
+ kwargs : Dict [str , Argument ],
1389
+ name : str ,
1390
+ ) -> Union [TRTTensor , Sequence [TRTTensor ]]:
1391
+ return impl .argmax .argmax (
1392
+ network ,
1393
+ target ,
1394
+ SourceIR .ATEN ,
1395
+ name ,
1396
+ input = args [0 ],
1397
+ dim = args_bounds_check (args , 1 ),
1398
+ keep_dim = args_bounds_check (args , 2 ),
1399
+ )
You can’t perform that action at this time.
0 commit comments