pytorch/c10/core
Pian Pawakapan 284b766898 [dynamic shapes] C++ bindings for guard_or_false/true (#150148)
C++ version. Would like to add it in one place to prove it works, but couldn't find one that doesn't expose a chain of data-dependent changes... so just gonna put up the base implementation

Pull Request resolved: https://github.com/pytorch/pytorch/pull/150148
Approved by: https://github.com/laithsakka, https://github.com/jingsh
2025-03-31 17:04:25 +00:00
..
impl Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +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 Reuse format_size utils (#149383) 2025-03-24 03:06:27 +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 [MAIA] [Autocast] Enable autocast on MAIA device (#148511) 2025-03-18 03:46:22 +00:00
BUILD.bazel
build.bzl Use c10 version of half/bfloat16 in executorch (#144111) 2025-02-08 22:40:14 +00:00
CachingDeviceAllocator.h Reuse format_size utils (#149383) 2025-03-24 03:06:27 +00:00
CompileTimeFunctionPointer.h
ConstantSymNodeImpl.cpp
ConstantSymNodeImpl.h
Contiguity.h
CopyBytes.cpp
CopyBytes.h
CPUAllocator.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +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 [MAIA] [Autocast] Enable autocast on MAIA device (#148511) 2025-03-18 03:46:22 +00:00
DispatchKey.h [MAIA] [Autocast] Enable autocast on MAIA device (#148511) 2025-03-18 03:46:22 +00:00
DispatchKeySet.cpp [MAIA] [Autocast] Enable autocast on MAIA device (#148511) 2025-03-18 03:46:22 +00:00
DispatchKeySet.h [MAIA] [Autocast] Enable autocast on MAIA device (#148511) 2025-03-18 03:46:22 +00:00
DynamicCast.h
Event.h
GeneratorImpl.cpp [2/N] Fix extra warnings brought by clang-tidy-17 (#137459) 2024-10-08 19:05:02 +00:00
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 add the torch.float8_e8m0fnu dtype to PyTorch (#147466) 2025-02-20 13:55:42 +00:00
ScalarType.cpp add torch.float4_e2m1fn_x2 to PyTorch (#148791) 2025-03-27 17:32:20 +00:00
ScalarType.h add torch.float4_e2m1fn_x2 to PyTorch (#148791) 2025-03-27 17:32:20 +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 [dynamic shapes] C++ bindings for guard_or_false/true (#150148) 2025-03-31 17:04:25 +00:00
SymBool.h [dynamic shapes] C++ bindings for guard_or_false/true (#150148) 2025-03-31 17:04:25 +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 Bump Clang-tidy to 19.1.4 (#148648) 2025-03-10 17:32:30 +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 [dynamic shapes] C++ bindings for guard_or_false/true (#150148) 2025-03-31 17:04:25 +00:00
TensorImpl.cpp Fix extra semicolon warning (#148291) 2025-03-03 18:51:44 +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 Fix extra semicolon warning (#148291) 2025-03-03 18:51:44 +00:00
thread_pool.h
UndefinedTensorImpl.cpp
UndefinedTensorImpl.h
WrapDimMinimal.cpp Bump Clang-tidy to 19.1.4 (#148648) 2025-03-10 17:32:30 +00:00
WrapDimMinimal.h