← Back to events
ActiveAIRelease

trunk/9b3c46e68f00204c812ba6c8e9ac2d8cbe5ec018: [typing] Mark torch.utils imports as explicit re-exports (#195289)

Photo: PyTorch Releases

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

Why it's spreading

Sources