I try to export my onnx(set dynmiac axes already) model to trt engine with dynamic shapes. I try to configured optimized profile to set the dynamic shapes, but failed.
Environment
TensorRT Version: 8…6.1 GPU Type: RTX3090 Nvidia Driver Version: 11.3 CUDA Version: 11.7 CUDNN Version: Operating System + Version: ubuntu 20.04 Python Version (if applicable): 3.8.10 TensorFlow Version (if applicable): PyTorch Version (if applicable): 1.12 Baremetal or Container (if container which image + tag):
Relevant Files
Please attach or include links to any models, data, files, or scripts necessary to reproduce your issue. (Github repo, Google Drive, Dropbox, etc.)
code: test_export_trt.py (4.5 KB)
Hi,
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:
validating your model with the below snippet
check_model.py
import sys
import onnx
filename = yourONNXmodel
model = onnx.load(filename)
onnx.checker.check_model(model).
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
Thanks!
The model and code I’ve already sent in Relevant Files block.
And I tried trtexec to convert the onnx, if I not set the min/opt/max dynamic shapes with command