pytorch/torch/_logging
Edward Yang 76b044d7cb Don't actually import module when checking if its valid (#136548)
Summary: If you actually import the module, you might end up with some import cycle situation where a module is imported too early and accesses things that are not initialized yet.

Test Plan:
sandcastle and ossci

```
TORCH_LOGS=+torch._inductor.codecache buck run mode/opt caffe2/benchmarks/dynamo:torchbench
```

Differential Revision: D63330224

Pull Request resolved: https://github.com/pytorch/pytorch/pull/136548
Approved by: https://github.com/Skylion007
2024-09-25 20:47:32 +00:00
..
__init__.py Log structured logging overhead to dynamo compile (kinda) (#136142) 2024-09-19 16:11:38 +00:00
_internal.py Don't actually import module when checking if its valid (#136548) 2024-09-25 20:47:32 +00:00
_registrations.py Add cache logs + other minor caching cleanup (#136456) 2024-09-24 14:00:23 +00:00
scribe.py [EZ] Remove remaining amz2023 runner variant references (#136540) 2024-09-25 19:01:00 +00:00
structured.py Dump files that look like FX graphs to structured log (#132100) 2024-07-31 18:45:28 +00:00