TensorRT Version : tensorrt/now 8.4.1.5-1+cuda11.4, nvidia-tensorrt/now 5.0.2-b231 GPU Type : NVIDIA® Jetson Xavier™ NX Nvidia Driver Version : nvidia-jetpack/now 5.0.2-b231 CUDA Version : cuda-11-4/now 11.4.14-1, nvidia-cuda/now 5.0.2-b231 CUDNN Version : libcudnn8/now 8.4.1.50-1+cuda11.4, nvidia-cudnn8/now 5.0.2-b231 Operating System + Version : Ubuntu 20.04.6 LTS Python Version (if applicable) : TensorFlow Version (if applicable) : not installed PyTorch Version (if applicable) : not installed Baremetal or Container (if container which image + tag) : baremetal
ValidationError Traceback (most recent call last)
/tmp/ipykernel_225078/4085541278.py in
3
4 # model = onnx.load(filename)
----> 5 onnx.checker.check_model(“model.onnx”)
/opt/conda/lib/python3.7/site-packages/onnx/checker.py in check_model(model, full_check)
123 # If model is a path instead of ModelProto
124 if isinstance(model, str):
→ 125 C.check_model_path(model, full_check)
126 else:
127 protobuf_string = (
ValidationError: Field ‘shape’ of ‘type’ is required but missing.
However, I am able to convert the model to tensorrt on multiple different platforms including an A5000 GPU, Jetson Orin, so I think it must be something to do with the Jetson Xavier NX.
It looks like issue with Jetpack version. I could build TRT model using trtexec on jetpack 5.1.2. Could you check with latest Jetpack release for Xavier NX?