Hi,
I currently have a Jetson Orin Nano with:
Jetpack - 6.0
CUDA - 12.2
Python - 3.10
Torch Version - 2.4.0a0+07cecf4168.nv24.05
TensorRT - 10.2
Torch2trt - 0.5.0
At the moment I have a pytorch model which runs slower than expected. I want to use a TensorRT engine to speed up. I tried both:
-
Torch2trt: which throws me the below error
File “/home/miniconda3/envs/new_env/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 1918, in state_dict
hook_result = hook(self, destination, prefix, local_metadata)
File “/home/miniconda3/envs/new_env/lib/python3.10/site-packages/torch2trt-0.5.0-py3.10.egg/torch2trt/trt_module.py”, line 60, in _on_state_dict
state_dict[prefix + “engine”] = bytearray(self.engine.serialize())
AttributeError: ‘NoneType’ object has no attribute ‘serialize’ -
Torch → ONNX → TensorRT: Throws me:
[07/22/2024-19:37:20] [E] Error[10]: IBuilder::buildSerializedNetwork: Error Code 10: Internal Error (Could not find any implementation for node /tcn/network/network.0/net1/conv1/Conv.)
[07/22/2024-19:37:20] [E] Error[1]: [checkMacros.cpp::catchCudaError::205] Error Code 1: Cuda Runtime (no kernel image is available for execution on the device)
[07/22/2024-19:37:20] [E] Engine could not be created from network
[07/22/2024-19:37:20] [E] Building engine failed
[07/22/2024-19:37:20] [E] Failed to create engine from model or file.
[07/22/2024-19:37:20] [E] Engine set up failed
It would be great if someone could help,
Thanks!