Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

[Bug]: "torchdynamo.logging.CODE print compiled functions + graphs" doesn't work #1718

@ezyang

Description

@ezyang

🐛 Describe the bug

# torchdynamo.logging.CODE print compiled functions + graphs
# logging.INFO print the steps that dynamo is running
# logging.WARN print warnings (including graph breaks)
# logging.ERROR print exceptions (and what user code was being processed when it occurred)
# NOTE: changing log_level will automatically update the levels of all torchdynamo loggers
log_level = tdl.CODE

in torch/_dynamo/config.py

torchdynamo doesn't exist anymore

even if you change to torch._dynamo it doesn't work due to recursive module import problem

Error logs

n

Did Dynamo succeed?

  • Does dynamo.optimize("eager") succeed?

Did AOT succeed?

  • Did dynamo.optimize("aot_eager") succeed?

Did Inductor succeed?

  • Does dynamo.optimize("inductor") succeed?

Minified repro

n

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions