← 返回事件
持续讨论AI发版

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

图:PyTorch Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源