Hello,
Maybe there is a bug in tensorrt 4.0 's c++ API,
just to write like this:
IHostMemory *trtModelStream{nullptr};
trtModelStream->destroy();
there maybe a core dump error,
the function destroy() should check whether the trtModelStream pointer is null,
thanks for you time.