Tensorrt 7.1.3 and ONNX 1.6 issuet

I use TensorRT 7.1.3 on Jetpack 4.5.1 TX2 with ONNX 1.6 but unsuccessful to convert weights from pytorch to ONNX and TensorRT. Please help me out.
The error as follows:

TensorRT: export failure \u274c 1.1s: failed to export ONNX file: runs/train/exp/weights/best.onnx


This belongs in the TensorRT forum, I have moved it over for you.

Request you to share the ONNX model and the script if not shared already so that we can assist you better.
Alongside you can try few things:

  1. validating your model with the below snippet


import sys
import onnx
filename = yourONNXmodel
model = onnx.load(filename)
2) Try running your model with trtexec command.

In case you are still facing issue, request you to share the trtexec “”–verbose"" log for further debugging


If you’re facing an issue while exporting the PyTorch model to ONNX, please try following.

Thank you.