pytorch/torch/fx/experimental
Laith Sakka 1aef88c72d Avoid DDE in narrow with unbacked start (#166361)
Slice knows how to handle unbacked start, we do not need to offset start before calling slice, we can leave it for slice.
The only edge case is when start<0 and start+length ==0 in that case slice and narrow would deviate,
for that case we shall pass dim_size instead of start+length

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166361
Approved by: https://github.com/aorenste
2025-11-01 07:10:23 +00:00
..
migrate_gradual_types [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
shape_inference [BE] fix remaining flake8 v7 warnings (#159044) 2025-07-25 02:56:34 +00:00
unification [3/N] fix typo in other folders (#166606) 2025-10-30 10:30:40 +00:00
__init__.py
_backward_state.py
_config.py
_constant_symnode.py Enable local tensor model for DTensor redistribute tests (#166081) 2025-10-26 22:21:43 +00:00
_dynamism.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
accelerator_partitioner.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
const_fold.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
debug.py
graph_gradual_typechecker.py [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
merge_matmul.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
meta_tracer.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
normalize.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
optimization.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
partitioner_utils.py
proxy_tensor.py [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
recording.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
refinement_types.py
rewriter.py [8/N] Apply ruff UP035 rule (#165214) 2025-10-15 03:18:57 +00:00
schema_type_annotation.py
sym_node.py [1/N] Remove unused loop variables (#166258) 2025-10-30 12:22:25 +00:00
symbolic_shapes.py Avoid DDE in narrow with unbacked start (#166361) 2025-11-01 07:10:23 +00:00
unify_refinements.py
validator.py Use 'is' in callable comparisons (#166624) 2025-10-30 19:00:09 +00:00