I came across the following problem yesterday evening.
Provide details on the platforms you are using:
Jetson Nano with Jetpack 4.2.2
Python version: 3.6.8
Describe the problem
I’m currently trying to build and serialize a couple of hundreds slightly different trt engines für testing and benchmarking. Therefore I have a for-loop for building engines and serializing/saving them afterward.
When running this script I noticed that the memory occupied is constantly increasing. Also, the increase of used memory seems to be related to the size of the engine. I tracked this issue down to
Commenting this line out resolves this issue and the memory consumption stays almost constant during the entire runtime of my script.
Do you have any idea how to avoid this?