• Hardware Platform: GPU
• DeepStream Version: 6.2
• TensorRT Version: 8.5.2.2
• NVIDIA GPU Driver Version: 525.85.12
• Issue Type: Bug
When using nvinfer to generate a TensorRT engine file from a TLT model the following error is displayed:
ERROR: [TRT]: 3: [builder.cpp::~Builder::307] Error Code 3: API Usage Error
(Parameter check failed at: optimizer/api/builder.cpp::~Builder::307, condition: mObjectCounter.use_count() == 1.
Destroying a builder object before destroying objects it created leads to undefined behavior.
We have tested this with the latest versions of several models from NGC and get this result for all models. The engine files are still generated and works well, so this error is probably not critical although it would be better if nvinfer could generate the engine file without any errors.