How to serialize the engine to PLAN file in C++?

I found { trt.utils.write_engine_to_file(“/data/mnist/tf_mnist.engine”, engine.serialize()) } in python.
How to serialize the engine to PLAN file in C++??

Hi,

Check here for example:
[url]https://github.com/dusty-nv/jetson-inference/blob/master/tensorNet.cpp#L181[/url]

Thanks.

ok,thanks.