pytorch/c10/core/impl
PaliC 29cbcbac42 [BE] Make PyObjectSlot use a global PyInterpreter (#162659)
This pr gets rid of the pyobj_interpreter_ variable from PyObjectSlot and saves a word in the process

Gonna ask for review from @huydhn as there are some changes to CI.

Testing: imported internally and the failed android build seems to work now!

Pull Request resolved: https://github.com/pytorch/pytorch/pull/162659
Approved by: https://github.com/albanD, https://github.com/huydhn
2025-09-25 08:53:19 +00:00
..
alloc_cpu.cpp Enable -Wunused on torch targets (#150077) 2025-05-02 07:14:19 +00:00
alloc_cpu.h [sigmoid] memory planner C10 deps (#151275) 2025-04-24 01:46:32 +00:00
COW.cpp
COW.h
COWDeleter.cpp
COWDeleter.h
DeviceGuardImplInterface.cpp [Reland] Return NoOpDeviceGuardImpl in replace of CudaDeviceGuard when device is not available (#163187) 2025-09-18 04:46:26 +00:00
DeviceGuardImplInterface.h [Reland] Return NoOpDeviceGuardImpl in replace of CudaDeviceGuard when device is not available (#163187) 2025-09-18 04:46:26 +00:00
FakeGuardImpl.h Enable -Wunused on torch targets (#150077) 2025-05-02 07:14:19 +00:00
GPUTrace.cpp
GPUTrace.h
HermeticPyObjectTLS.cpp
HermeticPyObjectTLS.h [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
InlineDeviceGuard.h
InlineEvent.h [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
InlineStreamGuard.h
LocalDispatchKeySet.cpp
LocalDispatchKeySet.h
PyInterpreter.cpp Remove guard_size_oblivious from default contiguity python check, and add aten.sym_is_contiguous. [attempt2] (#160869) 2025-09-08 22:59:13 +00:00
PyInterpreter.h Remove guard_size_oblivious from default contiguity python check, and add aten.sym_is_contiguous. [attempt2] (#160869) 2025-09-08 22:59:13 +00:00
PyInterpreterHooks.cpp [BE] Make PyObjectSlot use a global PyInterpreter and remove (#158427) 2025-07-30 17:29:43 +00:00
PyInterpreterHooks.h [BE] Make PyObjectSlot use a global PyInterpreter (#162659) 2025-09-25 08:53:19 +00:00
PyObjectSlot.cpp [BE] Make PyObjectSlot use a global PyInterpreter (#162659) 2025-09-25 08:53:19 +00:00
PyObjectSlot.h [BE] Make PyObjectSlot use a global PyInterpreter (#162659) 2025-09-25 08:53:19 +00:00
PythonDispatcherTLS.cpp
PythonDispatcherTLS.h
README-cow.md
README.md
SizesAndStrides.cpp
SizesAndStrides.h [nativert] libtorch kernel registry (#157150) 2025-07-16 12:36:55 +00:00
TorchDispatchModeTLS.cpp
TorchDispatchModeTLS.h
VirtualGuardImpl.h

c10/core/impl provides headers for functionality that is only needed in very specific use-cases (e.g., you are defining a new device type), which are generally only needed by C10 or PyTorch code. If you are an ordinary end-user, you should not use headers in this folder. We permanently give NO backwards-compatibility guarantees for implementations in this folder.

Compare with c10/util, which provides functionality that is not directly related to being a deep learning library (e.g., C++20 polyfills), but may still be generally useful and visible to users.

(We don't call this c10/detail, because the detail namespace convention is for header private details. However, c10::impl may be utilized from external headers; it simply indicates that the functionality is not for end users.)