pytorch/torch/_export
Avik Chaudhuri 1a613c3342 bump counters for unbacked binding names (#145882)
Instead of bumping symint counters when we process unbacked bindings during deserialization, it's better to bump them at the beginning based on what the symbols in the original shape env before serialization were. This allows symbols in unbacked bindings to have "gaps" that bumping alone would not be able to match.

Why is bumping counters important at all? It is because when the shape env coming out of deserialization is used later for propagating symints, say in run_decompositions, we don't want new names to clash with existing names (bad things happen).

Differential Revision: [D68798191](https://our.internmc.facebook.com/intern/diff/D68798191/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/145882
Approved by: https://github.com/pianpwk
2025-01-29 17:46:21 +00:00
..
db PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
pass_infra PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
passes PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
serde bump counters for unbacked binding names (#145882) 2025-01-29 17:46:21 +00:00
__init__.py PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
converter.py PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
error.py
non_strict_utils.py PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
pass_base.py PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
tools.py PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
utils.py PEP585 update - torch/_export (#145138) 2025-01-19 18:48:35 +00:00
verifier.py [export] allow bit shift builtin ops (#145802) 2025-01-29 03:05:48 +00:00
wrappers.py graph module retracing without preserving MCS (#143676) 2024-12-21 07:57:43 +00:00