pytorch/c10
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
..
benchmark Set RUNPATH so installed tests can find the required shared libraries (#136627) 2024-10-25 09:38:08 +00:00
core Avoid DDE in narrow with unbacked start (#166361) 2025-11-01 07:10:23 +00:00
cuda Replace c10::call_once with static initialization (#166381) 2025-11-01 07:09:40 +00:00
hip Use torch_compile_options for c10 libraries (#147821) 2025-03-18 01:54:23 +00:00
macros Move c10/macros/Macros.h to headeronly (#158365) 2025-07-16 18:46:52 +00:00
metal [MPS] Move logaddexp/logaddexp2 to Metal and support complex (#166670) 2025-10-31 16:15:02 +00:00
mobile [3/N] fix typo in other folders (#166606) 2025-10-30 10:30:40 +00:00
test Replace decltype(auto) with auto (#166537) 2025-11-01 00:30:23 +00:00
util Replace decltype(auto) with auto (#166537) 2025-11-01 00:30:23 +00:00
xpu Replace c10::call_once with static initialization (#166381) 2025-11-01 07:09:40 +00:00
BUCK.oss Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035) 2025-07-15 19:52:59 +00:00
BUILD.bazel remove //c10:headers (#98420) 2023-04-05 19:33:10 +00:00
build.bzl Remove non-header-only dep from c10_headers target (#155858) 2025-06-16 21:41:25 +00:00
CMakeLists.txt Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035) 2025-07-15 19:52:59 +00:00
ovrsource_defs.bzl Revert "Consistently use c10_ovrsource in arvr mode everywhere (#164128)" 2025-09-30 14:43:52 +00:00