You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to convert model created by code from Karpathy: https://github.com/karpathy/minGPT and it uses embending layer which needs Long Tensor as an input. But torch2trt gives me an error TypeError: torch.int64 is not supported by tensorrt . I am using Jetson 4.4 with tensorrt 7.1+ which should convert it, but without any luck. Is there a possibility to make it work?
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last): File "trt_embedding_long_capability.py", line 41, in <module> main(args) File "trt_embedding_long_capability.py", line 28, in main embedding_trt = torch2trt(embedding, [x]) File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.3.0-py3.6.egg/torch2trt/torch2trt.py", line 551, in torch2trt ctx.add_inputs(inputs, input_names) File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.3.0-py3.6.egg/torch2trt/torch2trt.py", line 407, in add_inputs dtype=torch_dtype_to_trt(torch_input.dtype), File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.3.0-py3.6.egg/torch2trt/torch2trt.py", line 38, in torch_dtype _to_trt raise TypeError("%s is not supported by tensorrt" % dtype) TypeError: torch.int64 is not supported by tensorrt
I am trying to convert model created by code from Karpathy: https://github.com/karpathy/minGPT and it uses embending layer which needs Long Tensor as an input. But torch2trt gives me an error TypeError: torch.int64 is not supported by tensorrt . I am using Jetson 4.4 with tensorrt 7.1+ which should convert it, but without any luck. Is there a possibility to make it work?
The text was updated successfully, but these errors were encountered: