Skip to content

Commit

Permalink
Update the instruction to enable dynamo logs (pytorch#109409)
Browse files Browse the repository at this point in the history
```
   torch._dynamo.config.log_level = logging.INFO
   torch._dynamo.config.output_code = True
```

were replaced with the module level log control pytorch#94858
Pull Request resolved: pytorch#109409
Approved by: https://github.com/msaroufim
  • Loading branch information
JackCaoG authored and pytorchmergebot committed Sep 18, 2023
1 parent a399f83 commit 282aa26
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/source/torch.compiler_deepdive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,11 @@ not in dynamic shape mode.
What is Dynamo doing?
---------------------

If you want to understand better what TorchDynamo is doing, you can set:
If you want to understand better what TorchDynamo is doing, you can run your code with:

.. code-block:: python
import torch._dynamo.config
import logging
::

torch._dynamo.config.log_level = logging.INFO
torch._dynamo.config.output_code = True
TORCH_LOGS="+dynamo,guards,bytecode"

This code triggers useful (but spammy) printouts.

Expand Down

0 comments on commit 282aa26

Please sign in to comment.