pytorch/torch/utils/_sympy
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
..
__init__.py
functions.py [2/N] Add strict parameter to Python zip calls (#166257) 2025-11-01 00:35:41 +00:00
interp.py [torch/utils][Code Clean] Clean asserts in torch/utils/_sympy (#165279) 2025-10-14 04:52:23 +00:00
numbers.py Fix error suppression syntax in utils and nn (#166242) 2025-10-26 05:21:07 +00:00
printers.py Avoid DDE in narrow with unbacked start (#166361) 2025-11-01 07:10:23 +00:00
reference.py Fix error suppression syntax in utils and nn (#166242) 2025-10-26 05:21:07 +00:00
singleton_int.py [BE][Easy][19/19] enforce style for empty lines in import segments in torch/[o-z]*/ (#129771) 2024-08-01 17:07:14 +00:00
solve.py [2/N] More ruff SIM fixes (#165031) 2025-10-14 14:22:54 +00:00
symbol.py [torch/utils][Code Clean] Clean asserts in torch/utils/_sympy (#165279) 2025-10-14 04:52:23 +00:00
value_ranges.py Fix error suppression syntax in utils and nn (#166242) 2025-10-26 05:21:07 +00:00