pytorch/torch/_logging/_registrations.py
Bert Maher e0bf51d3bf [dynamo] Add ddp_graphs artifact (#100021)
I want to be able to decouple DDP graph printing from the rest of
dynamo DEBUG-level logging, since frequently these logs are particularly
enlightening.

Differential Revision: [D45290919](https://our.internmc.facebook.com/intern/diff/D45290919/)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/100021
Approved by: https://github.com/wconstab, https://github.com/mlazos
2023-04-27 03:53:23 +00:00

18 lines
635 B
Python

from ._internal import register_artifact, register_log
register_log("dynamo", "torch._dynamo")
register_log("aot", "torch._functorch.aot_autograd")
register_log("inductor", "torch._inductor")
register_log("dynamic", "torch.fx.experimental.symbolic_shapes")
register_artifact("guards")
register_artifact("bytecode", off_by_default=True)
register_artifact("graph")
register_artifact("graph_code")
register_artifact("aot_graphs")
register_artifact("aot_joint_graph")
register_artifact("ddp_graphs")
register_artifact("recompiles")
register_artifact("output_code", off_by_default=True)
register_artifact("schedule", off_by_default=True)