pytorch/c10/core/impl
Yuanyuan Chen 99c8640b5d [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750)
This series of changes try to cover C style casts into C++ alternatives.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165750
Approved by: https://github.com/Skylion007
2025-10-20 23:27:13 +00:00
..
alloc_cpu.cpp Remove unnecessary "static" for definitions in anonymous namespace (#165035) 2025-10-11 00:04:23 +00:00
alloc_cpu.h [sigmoid] memory planner C10 deps (#151275) 2025-04-24 01:46:32 +00:00
COW.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
COW.h [2/N] Fix Wextra-semi warnings (#139142) 2024-10-29 08:14:37 +00:00
COWDeleter.cpp Add function to materialize COW storages (#117053) 2024-01-10 15:34:16 +00:00
COWDeleter.h Add function to materialize COW storages (#117053) 2024-01-10 15:34:16 +00:00
DeviceGuardImplInterface.cpp Add functions to setup PrivateUse1 as a python backend device. (#157859) 2025-10-01 21:32:59 +00:00
DeviceGuardImplInterface.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
FakeGuardImpl.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
GPUTrace.cpp [3/N] Remove unnecessary once flag usage (#145672) 2025-01-28 04:28:18 +00:00
GPUTrace.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
HermeticPyObjectTLS.cpp Revert "[BE] Remove HermeticPyObjectTLS and Simplify PythonOpRegistrationTrampoline (#163464)" 2025-09-30 18:20:20 +00:00
HermeticPyObjectTLS.h Revert "[BE] Remove HermeticPyObjectTLS and Simplify PythonOpRegistrationTrampoline (#163464)" 2025-09-30 18:20:20 +00:00
InlineDeviceGuard.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
InlineEvent.h [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
InlineStreamGuard.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
LocalDispatchKeySet.cpp Enable nested namespace check in clang-tidy (#118506) 2024-01-31 00:32:35 +00:00
LocalDispatchKeySet.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
PyInterpreter.cpp Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +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 [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
PyObjectSlot.cpp Revert "[BE] Make PyObjectSlot use a global PyInterpreter (#162659)" 2025-10-05 21:39:57 +00:00
PyObjectSlot.h Revert "[BE] Make PyObjectSlot use a global PyInterpreter (#162659)" 2025-10-05 21:39:57 +00:00
PythonDispatcherTLS.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
PythonDispatcherTLS.h Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
README-cow.md Add function to materialize COW storages (#117053) 2024-01-10 15:34:16 +00:00
README.md
SizesAndStrides.cpp Enable nested namespace check in clang-tidy (#118506) 2024-01-31 00:32:35 +00:00
SizesAndStrides.h [nativert] libtorch kernel registry (#157150) 2025-07-16 12:36:55 +00:00
TorchDispatchModeTLS.cpp [1/N] Remove unused header inclusion (#165763) 2025-10-18 05:23:11 +00:00
TorchDispatchModeTLS.h [codemod] c10:optional -> std::optional (#126135) 2024-05-14 19:35:51 +00:00
VirtualGuardImpl.h Don't return values in void functions (#164809) 2025-10-08 01:04:14 +00:00

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.)