trunk/e1b01c2293567934c22994ce5ca9a340499e0d26: [dynamo] Skip an already-bound name when installing a global (#196822)
- PyTorch 近 90 天出现 876 次
- PyTorch 近 90 天第 865 次发版
- 上一次:同一天稍早 · trunk/0ccbf972a39fc88cb17348079bca7332ef022bfc: [BE][MPS] Use `dispatch_sync_with_rethrow` (#196893)
发生了什么
install_global trusts unique_id to hand out a free name, and within one process it does -- the counter never repeats. But the name only has to be unique in the module dict it is installed into, and that dict can already carry a binding minted by a DIFFERENT process: CompilePackage.install() seeds a captured __builtins_dict___N key into the live module globals and re-installs a loaded entry's __resume_at_* globals as…
摘要按规则整理自下方来源原文