pytorch/torch/export
Pian Pawakapan 10b9d4d19c [export] handle Dim.lower = 0, 1 for ep.run_decompositions() (#123602)
Summary:
With pre-dispatch export and ep.run_decompositions(), range constraints are updated through looking at ShapeEnv.var_to_range. However the lower bounds on these may be incorrect - analysis on un-specialized symbols are done with lower bounds of 2, which mismatch with user-specified bounds (may be 0, 1).

This updates `_get_updated_range_constraints()` to use the old range constraints if possible.

Test Plan: Existing pre-dispatch/dynamic shapes test case.

Differential Revision: D55899872

Pull Request resolved: https://github.com/pytorch/pytorch/pull/123602
Approved by: https://github.com/tugsbayasgalan
2024-04-19 21:29:36 +00:00
..
__init__.py [export] Remove WrapperModule. (#121042) 2024-03-05 18:10:22 +00:00
_remove_auto_functionalized_pass.py [export] Fix handling output in remove_effect_tokens_pass (#122357) 2024-03-22 03:35:59 +00:00
_remove_effect_tokens_pass.py [export] Fix handling output in remove_effect_tokens_pass (#122357) 2024-03-22 03:35:59 +00:00
_safeguard.py [export] Update error message for set_grad (#121666) 2024-03-12 16:41:45 +00:00
_trace.py [Export] Add runtime assert to non-strict export (#123681) 2024-04-18 16:13:27 +00:00
_tree_utils.py [export] do not use tree_flatten_spec (#118608) 2024-01-30 19:14:04 +00:00
_unlift.py [export] Add effect token to export (#121424) 2024-03-09 02:43:26 +00:00
custom_obj.py [Export] Introduce class_fqn into CustomObjArgument (#118158) 2024-01-25 18:44:25 +00:00
dynamic_shapes.py Make lint clean on OS X (#123052) 2024-04-09 17:10:16 +00:00
exported_program.py [export] handle Dim.lower = 0, 1 for ep.run_decompositions() (#123602) 2024-04-19 21:29:36 +00:00
graph_signature.py [export] Restore original placeholder names (part 3: constant input de/serialization) (#123590) 2024-04-15 19:09:41 +00:00
unflatten.py [export] Add a printer to unflattened module. (#124315) 2024-04-18 16:35:51 +00:00