Assertion `size >= bsize && "Mismatch between allocated memory size and expected size of serialized engine."' failed.

I have build TRT ok and runing inference

Loading images from /home/opp/logs/2019_09_05_1452_43_perceptionLog/Lens0/Image_-1_0_003*.png
[INFO] Loading engine filenrec_det_seg_2.trt okay.
[INFO] fsize: 229359616
runTensorRTClassifier: engine.cpp:1104: bool nvinfer1::rt::Engine::deserialize(const void*, std::size_t, nvinfer1::IGpuAllocator&, nvinfer1::IPluginFactory*): Assertion `size >= bsize && “Mismatch between allocated memory size and expected size of serialized engine.”’ failed.
Aborted (core dumped)

why Assertion `size >= bsize && "Mismatch between allocated memory size and expected size of serialized engine

what is size and what is bsize

Hi,

In TensorRT 5.0, the bsize is the size stored at builder stage. This size is expected to be equal or smaller than the allocated memory size.

Thanks