pytorch/c10/core/impl
2025-01-30 03:14:27 +00:00
..
alloc_cpu.cpp Use std::string_view (#145906) 2025-01-30 03:14:27 +00:00
alloc_cpu.h
COW.cpp
COW.h
COWDeleter.cpp
COWDeleter.h
DeviceGuardImplInterface.cpp
DeviceGuardImplInterface.h Fix torch.accelerator api abort when passing invaild device (#143550) 2024-12-23 03:44:22 +00:00
FakeGuardImpl.h
GPUTrace.cpp [3/N] Remove unnecessary once flag usage (#145672) 2025-01-28 04:28:18 +00:00
GPUTrace.h
HermeticPyObjectTLS.cpp
HermeticPyObjectTLS.h
InlineDeviceGuard.h
InlineEvent.h
InlineStreamGuard.h
LocalDispatchKeySet.cpp
LocalDispatchKeySet.h
PyInterpreter.cpp
PyInterpreter.h
PyObjectSlot.cpp
PyObjectSlot.h Remove unneeded std::make_optional (#141567) 2024-11-28 00:05:21 +00:00
PythonDispatcherTLS.cpp
PythonDispatcherTLS.h Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
README-cow.md
README.md
SizesAndStrides.cpp
SizesAndStrides.h Fix cppcoreguidelines-init-variables ignorance (#141795) 2025-01-28 17:11:37 +00:00
TorchDispatchModeTLS.cpp
TorchDispatchModeTLS.h
VirtualGuardImpl.h Fix torch.accelerator api abort when passing invaild device (#143550) 2024-12-23 03:44:22 +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.)