cyrusbehr / tensorrt-cpp-api

TensorRT C++ API Tutorial
MIT License
543 stars 66 forks source link

How does this pointer get deleted? #50

Closed Mona77 closed 4 months ago

Mona77 commented 4 months ago

Thanks a lot of sharing your repository. Do you know how this pointer can be deleted?

IOptimizationProfile *optProfile = builder->createOptimizationProfile();

https://github.com/cyrusbehr/tensorrt-cpp-api/blob/main/src/engine.cpp#L126

cyrusbehr commented 4 months ago

See NvInfer.h

The builder retains ownership.

image