trunk/9b3c46e68f00204c812ba6c8e9ac2d8cbe5ec018: [typing] Mark torch.utils imports as explicit re-exports (#195289)
- PyTorch: 695 events in the last 90 days
- PyTorch: 686th Release in the last 90 days
- Previous: earlier the same day · trunk/9e5c828d569a410b5043a22f354890e1e0d26149
What happened
Partially addresses #131765 Summary Mark imported torch.utils functions and classes as explicit same-name re-exports for static type checkers. Cover generate_methods_for_privateuse1_backend , rename_privateuse1_backend , get_cpp_backtrace , and ThroughputBenchmark . Preserve runtime behavior and avoid changing from torch.utils import * semantics by introducing a new __all__ . Testing Import-only typing change; no ru…
Summary assembled by rule from the sources below