trunk/e1b01c2293567934c22994ce5ca9a340499e0d26: [dynamo] Skip an already-bound name when installing a global (#196822)
- PyTorch: 876 events in the last 90 days
- PyTorch: 865th Release in the last 90 days
- Previous: earlier the same day · trunk/0ccbf972a39fc88cb17348079bca7332ef022bfc: [BE][MPS] Use `dispatch_sync_with_rethrow` (#196893)
What happened
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…
Summary assembled by rule from the sources below