TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

load .trt file built by trtexec to create an engine by running engine = runtime->deserializeCudaEngine(), but get null

Open Fuzhiyuan opened this issue 3 years ago • 2 comments

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?

Fuzhiyuan avatar Jul 14 '22 09:07 Fuzhiyuan

refer to https://github.com/zerollzeng/tiny-tensorrt/blob/d267b9cc9be5408a3c5a1b4c57e0be2d24a7de1d/src/Trt.cpp#L286

zerollzeng avatar Jul 15 '22 16:07 zerollzeng

@zerollzeng can you elaborate a little more, because I also had the same issue when I tried to load the .trt. Thank you!

kennethgomez01 avatar Jul 16 '22 08:07 kennethgomez01

closing since no activity for more than 14 days, please reopen if you still have question, thanks!

ttyio avatar Dec 12 '22 07:12 ttyio