TensorRT
TensorRT copied to clipboard
load .trt file built by trtexec to create an engine by running engine = runtime->deserializeCudaEngine(), but get null
I use trtexec to build an engine file, and try to load it by ifstream(name,std::ios::binary), but got null engine. what should Ido?
refer to https://github.com/zerollzeng/tiny-tensorrt/blob/d267b9cc9be5408a3c5a1b4c57e0be2d24a7de1d/src/Trt.cpp#L286
@zerollzeng can you elaborate a little more, because I also had the same issue when I tried to load the .trt. Thank you!
closing since no activity for more than 14 days, please reopen if you still have question, thanks!