How to disable the log information of nvonnxparser::IParser::parseFromFile?

The following information would be shown on the screen when I call the function nvonnxparser::IParser::parseFromFile:

----- Parsing of ONNX model ./model.onnx is Done ----

How to hide the information? Thanks!


Not sure if it’ll work for onnx parser, but consider trying logger api.

Thanks for your reply!

But it seems that the issue is not related to the logger because the information is different to what I have defined.

Besides, the log information is always shown even I change the verbosity level.

I test my code on TensorRT5.