How to get rid of a message while running torch 2.0

============= Diagnostic Run torch.onnx.export version 2.0.1+cu117 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================

is there a way to get rid of this message

I don’t know the reason for the message, but if you simply want to surpress it you can do the following:

import warnings
warnings.filterwarnings("ignore", ".*Diagnostic Run.*")