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!

Hello,

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

https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#initialize_library

https://docs.nvidia.com/deeplearning/sdk/tensorrt-archived/tensorrt_210/tensorrt-user-guide/index.html#logging

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.