pytorch/c10/core
Scott Wolchok ade8fee512 Use c10 version of half/bfloat16 in executorch (#144111)
Summary:
X-link: https://github.com/pytorch/executorch/pull/7040

Accomplished by importing relevant files from c10 into
executorch/runtime/core/portable_type/c10, and then using `using` in
the top-level ExecuTorch headers. This approach should keep the
ExecuTorch build hermetic for embedded use cases. In the future, we
should add a CI job to ensure the c10 files stay identical to the
PyTorch ones.
ghstack-source-id: 260047850
exported-using-ghexport

Test Plan: builds

Differential Revision: D66106969

Pull Request resolved: https://github.com/pytorch/pytorch/pull/144111
Approved by: https://github.com/malfet
2025-02-08 22:40:14 +00:00
..
impl Use std::string_view (#145906) 2025-01-30 03:14:27 +00:00
alignment.h
Allocator.cpp Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
Allocator.h Enable more readability-redundant checks (#143963) 2024-12-30 14:49:33 +00:00
AutogradState.cpp
AutogradState.h [13/N] Fix extra warnings brought by clang-tidy-17 (#140897) 2024-11-27 00:35:19 +00:00
Backend.h
BUILD.bazel
build.bzl Use c10 version of half/bfloat16 in executorch (#144111) 2025-02-08 22:40:14 +00:00
CachingDeviceAllocator.h
CompileTimeFunctionPointer.h
ConstantSymNodeImpl.cpp
ConstantSymNodeImpl.h
Contiguity.h
CopyBytes.cpp
CopyBytes.h
CPUAllocator.cpp [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
CPUAllocator.h
DefaultDtype.cpp
DefaultDtype.h
DefaultTensorOptions.h
Device.cpp Revert "Increase C10_COMPILE_TIME_MAX_GPUS to 128 (#144138)" 2025-01-14 19:04:12 +00:00
Device.h Revert "Increase C10_COMPILE_TIME_MAX_GPUS to 128 (#144138)" 2025-01-14 19:04:12 +00:00
DeviceArray.h std::value/std::type -> std::_v/std::_t (#138746) 2024-10-26 20:59:24 +00:00
DeviceGuard.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
DeviceType.cpp Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
DeviceType.h
DispatchKey.cpp [autocast][pytorch] Support autocast for MTIA (#145627) 2025-01-25 03:24:59 +00:00
DispatchKey.h [autocast][pytorch] Support autocast for MTIA (#145627) 2025-01-25 03:24:59 +00:00
DispatchKeySet.cpp
DispatchKeySet.h [autocast][pytorch] Support autocast for MTIA (#145627) 2025-01-25 03:24:59 +00:00
DynamicCast.h
Event.h
GeneratorImpl.cpp
GeneratorImpl.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
GradMode.cpp
GradMode.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
InferenceMode.cpp
InferenceMode.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
Layout.h
MemoryFormat.h
OptionalRef.h
PyHandleCache.h
QEngine.h
QScheme.h
RefcountedDeleter.cpp [18/N] Fix extra warnings brought by clang-tidy-17 (#144014) 2025-01-08 17:21:55 +00:00
RefcountedDeleter.h
SafePyObject.cpp
SafePyObject.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
Scalar.cpp
Scalar.h [BE] Enable Scalar.h compilation on 32-bit system (#142235) 2024-12-07 01:05:55 +00:00
ScalarType.cpp
ScalarType.h Revert "Remove C10_DEPRECATED (#138406)" 2024-10-22 18:00:41 +00:00
ScalarTypeToTypeMeta.h
Storage.cpp
Storage.h
StorageImpl.cpp Turn some variables and functions into static (#136847) 2024-10-29 17:01:56 +00:00
StorageImpl.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
Stream.cpp
Stream.h
StreamGuard.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
SymbolicShapeMeta.cpp Fix cppcoreguidelines-init-variables ignorance (#141795) 2025-01-28 17:11:37 +00:00
SymbolicShapeMeta.h [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
SymBool.cpp
SymBool.h Remove unneeded std::make_optional (#141567) 2024-11-28 00:05:21 +00:00
SymFloat.cpp fix incorrect c10::SymFloat::sqrt (#141728) 2024-12-03 23:34:16 +00:00
SymFloat.h Add admonition about as_float_unchecked() (#141742) 2024-11-28 06:25:18 +00:00
SymInt.cpp [Reland][7/N] Fix Wextra-semi warning (#140342) 2024-11-12 18:55:31 +00:00
SymInt.h Remove unneeded std::make_optional (#141567) 2024-11-28 00:05:21 +00:00
SymIntArrayRef.cpp
SymIntArrayRef.h
SymNodeImpl.cpp
SymNodeImpl.h Fix Wextra-semi warnings (#139000) 2024-10-28 21:48:51 +00:00
TensorImpl.cpp [5/N] Fix extra warnings brought by clang-tidy-17 (#138403) 2024-10-21 02:59:54 +00:00
TensorImpl.h Fix Wextra-semi warnings (#139000) 2024-10-28 21:48:51 +00:00
TensorOptions.cpp
TensorOptions.h Enable readability-redundant-declaration (#143982) 2024-12-31 00:20:10 +00:00
thread_pool.cpp [5/N] Fix extra warnings brought by clang-tidy-17 (#138403) 2024-10-21 02:59:54 +00:00
thread_pool.h
UndefinedTensorImpl.cpp
UndefinedTensorImpl.h
WrapDimMinimal.cpp
WrapDimMinimal.h