pytorch/c10
Laith Sakka 39df901b2a introduce definitely_contiguous and use it for reshape and tensor meta data computation. (#153432)
when a tensor has unbacked symbols it can be general enough to represent both contiguous and non contiguous tensors.
in that case we cant really evaluate is_contiguous. In many places in the code base, we check for is_contiguous to take a fast path. but the general path usually works for both contiguous and not contiguous in that case we probably want
to use definitely _contiguous API.

This is appleid for reshape in this PR and also to  tensor meta data computation, the meta data now will have an attribute that says that its contiguous when its always contiguous. We would store that only if definitely _contiguous is true  now.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153432
Approved by: https://github.com/bobrenjc93
2025-05-28 03:41:26 +00:00
..
benchmark Set RUNPATH so installed tests can find the required shared libraries (#136627) 2024-10-25 09:38:08 +00:00
core introduce definitely_contiguous and use it for reshape and tensor meta data computation. (#153432) 2025-05-28 03:41:26 +00:00
cuda make only current thread allocate to pool in NcclPG (#153990) 2025-05-21 21:57:37 +00:00
hip Use torch_compile_options for c10 libraries (#147821) 2025-03-18 01:54:23 +00:00
macros [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
metal [MPS][BE] Move fmod/remainder to Metal ops (#154280) 2025-05-24 01:45:33 +00:00
mobile [2/N] Fix extra warnings brought by clang-tidy-17 (#137459) 2024-10-08 19:05:02 +00:00
test [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
util [BE] Fix typos in SyntaxError description (#154436) 2025-05-27 18:08:58 +00:00
xpu Add memory reporting for XPU to Memory Profiler (#152842) 2025-05-21 01:19:19 +00:00
BUCK.oss
BUILD.bazel
build.bzl Use c10 version of half/bfloat16 in executorch (#144111) 2025-02-08 22:40:14 +00:00
CMakeLists.txt Use torch_compile_options for c10 libraries (#147821) 2025-03-18 01:54:23 +00:00
ovrsource_defs.bzl [NeuralNetInference] Bring up iOS builds (#131917) 2024-07-30 23:01:09 +00:00