TensorRT memory issue


I’m creating a network layer by layer using addConvolution, addPooling… functions from the INetworkDefinition. After creating the network I call the destroy method on IExecutionContext, ICudaEngine, INetworkDefinition, IBuilder in that order, but it seems some memory isn’t deallocated.

Do I have to do anything special to free memory in this case?