trunk/9b3c46e68f00204c812ba6c8e9ac2d8cbe5ec018: [typing] Mark torch.utils imports as explicit re-exports (#195289)
- PyTorch 近 90 天出现 696 次
- PyTorch 近 90 天第 687 次发版
- 上一次:同一天稍早 · trunk/9e5c828d569a410b5043a22f354890e1e0d26149
发生了什么
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…
摘要按规则整理自下方来源原文