最近更新TensorRT版至8.2.4.2版本,发现有的onnx转tensorRT文件后,反序列化会报错:
[MemUsageChange] Init CUDA: CPU +261, GPU +0, now: CPU 18736, GPU 1058 (MiB)
Loaded engine size: 104 MiB
1: [pluginV2Runner.cpp::nvinfer1::rt::load::290]
Error Code 1: Serialization (Serialization assertion creator failed.
Cannot deserialize plugin
since corresponding IPluginCreator not found in Plugin Registry)
4: [runtime.cpp::nvinfer1::Runtime::deserializeCudaEngine::50]
Error Code 4: Internal Error (Engine deserialization failed.)
解决方案:
①
②