Pytorch 2.0 suppress logging

Hi, I’m currently trying torch.compile in Pytorch 2.0 and it works well but absolutely floods my terminal with logs such as

[2023-03-17 20:04:31,840] torch._dynamo.output_graph: [INFO] Step 2: done compiler function debug_wrapper

I was wondering if there is a way to suppress these logs? Warnings are okay but for me the INFO logs are too much. I tried to find a way to torch.compile less verbose but couldn’t find anything.


This issue seems to be related to this discussion and this feature request.

1 Like