I am writing C++ inference application using TensorRT.
Some functions, such as
deserializeCudaEngine(), return pointers.
However, there is no description if we need call
delete explicitly or not for each function/method, while user guide shows
delete finalization on some objects.
How should I destroy a object that is returned by TensorRT functions?
This question is about programming model, so that I do not fill these except TensorRT version.
TensorRT Version: 8.2
Nvidia Driver Version:
Operating System + Version:
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):
Please attach or include links to any models, data, files, or scripts necessary to reproduce your issue. (Github repo, Google Drive, Dropbox, etc.)
- Exact steps/commands to build your repro
- Exact steps/commands to run your repro
- Full traceback of errors encountered