pytorch/c10/core/impl
2024-10-29 08:14:37 +00:00
..
alloc_cpu.cpp [Windows][cpu] mkl use mimalloc as allocator on Windows (#138419) 2024-10-24 05:29:47 +00:00
alloc_cpu.h [Windows][cpu] mkl use mimalloc as allocator on Windows (#138419) 2024-10-24 05:29:47 +00:00
COW.cpp Disallow {FakeTensor,FunctionalTensor}.data_ptr (#122514) 2024-03-26 23:55:42 +00:00
COW.h [2/N] Fix Wextra-semi warnings (#139142) 2024-10-29 08:14:37 +00:00
COWDeleter.cpp
COWDeleter.h
DeviceGuardImplInterface.cpp
DeviceGuardImplInterface.h Introduce a device-agnostic runtime API design (#132204) 2024-10-27 10:37:09 +00:00
FakeGuardImpl.h
GPUTrace.cpp
GPUTrace.h
HermeticPyObjectTLS.cpp
HermeticPyObjectTLS.h
InlineDeviceGuard.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
InlineEvent.h Support generic stream/event on CUDA/HIP backend (#125757) 2024-05-10 13:34:09 +00:00
InlineStreamGuard.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
LocalDispatchKeySet.cpp
LocalDispatchKeySet.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
PyInterpreter.cpp Update SavedTensorHooks TLS stack to use SafePyObject (#131700) 2024-08-02 16:27:16 +00:00
PyInterpreter.h Fix Wextra-semi warnings (#139000) 2024-10-28 21:48:51 +00:00
PyObjectSlot.cpp
PyObjectSlot.h [1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301) 2024-07-08 07:03:53 +00:00
PythonDispatcherTLS.cpp
PythonDispatcherTLS.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
README-cow.md
README.md
SizesAndStrides.cpp
SizesAndStrides.h
TorchDispatchModeTLS.cpp [1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301) 2024-07-08 07:03:53 +00:00
TorchDispatchModeTLS.h [codemod] c10:optional -> std::optional (#126135) 2024-05-14 19:35:51 +00:00
VirtualGuardImpl.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +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.)