pytorch/c10/util
Yuanyuan Chen 35153d0846 Simplify c10::guts::apply (#164566)
There is only one call site of `c10::guts::apply` that can be replaced by `:std::apply` except for ROCm. This PR therefore simplifies the implementation of `c10::guts::apply`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164566
Approved by: https://github.com/Aidyn-A, https://github.com/albanD
2025-10-22 00:47:43 +00:00
..
AbortHandler.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
accumulate.h
AlignOf.h
ApproximateClock.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
ApproximateClock.h [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
Array.h
ArrayRef.h Revert "Refactor out headeronly ArrayRef (#164991)" 2025-10-20 17:26:42 +00:00
Backtrace.cpp Use the unicode variant of the Windows API (#47422) (#138605) 2024-10-26 17:41:39 +00:00
Backtrace.h
BFloat16-inl.h Move BFloat16.h to headeronly (#159412) 2025-07-31 15:29:17 +00:00
BFloat16-math.h Remove is_reduced_floating_point from namespace std (#144502) 2025-01-10 03:24:10 +00:00
Bfloat16.cpp
BFloat16.h Move BFloat16.h to headeronly (#159412) 2025-07-31 15:29:17 +00:00
bit_cast.h Move some of vec into headeronly in preparation for Half.h (#158976) 2025-07-29 05:43:53 +00:00
bits.h Migrate easy q(u)int/bits stuff to torch/headeronly (#159302) 2025-07-30 03:41:27 +00:00
Bitset.h Use clang-tidy 17 (#139678) 2024-11-05 16:00:25 +00:00
BUILD.bazel
build.bzl Fix UB in BFloat16 round_to_nearest_even (#157942) 2025-07-10 18:03:39 +00:00
C++17.cpp
C++17.h Simplify c10::guts::apply (#164566) 2025-10-22 00:47:43 +00:00
CallOnce.h initialize device when pinning memory on this device, short circuit i… (#145752) 2025-01-30 21:37:29 +00:00
complex_math.cpp [1/N] Remove unused header inclusion (#165763) 2025-10-18 05:23:11 +00:00
complex_math.h
complex_utils.h
complex.h Move complex to headeronly (#159411) 2025-07-31 22:05:43 +00:00
ConstexprCrc.h Use std::string_view (#145906) 2025-01-30 03:14:27 +00:00
copysign.h
DeadlockDetection.cpp [Environment Variable][1/N] Use thread-safe env variable API in c10 (#119449) 2024-10-01 06:24:30 +00:00
DeadlockDetection.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
Deprecated.h Revert "Remove C10_DEPRECATED (#138406)" 2024-10-22 18:00:41 +00:00
DimVector.h
DynamicCounter.cpp Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
DynamicCounter.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
Enumerate.h [nativert] port enumerate from folly to c10::utill (#152481) 2025-05-01 21:41:05 +00:00
env.cpp [Environment Variable][Rebase] Use thread-safe getenv functions (#140200) 2025-05-02 00:41:49 +00:00
env.h [Environment Variable][1/N] Use thread-safe env variable API in c10 (#119449) 2024-10-01 06:24:30 +00:00
error.cpp Add missing explicit include directive for <cerrno> in c10/util/error… (#141593) 2024-11-27 00:00:23 +00:00
error.h Add and use thread-safe strerror (#140472) 2024-11-19 04:24:17 +00:00
Exception.cpp Enable -Wunused on torch targets (#150077) 2025-05-02 07:14:19 +00:00
Exception.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
ExclusivelyOwned.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
ExclusivelyOwnedTensorTraits.h Combine strong and weak refcounts in intrusive_ptr in a single refcount (#163394) 2025-09-22 17:53:28 +00:00
FbcodeMaps.h
FileSystem.h Redirect all use of filesystem to c10/utils/FileSystem.h (#162914) 2025-09-15 04:30:41 +00:00
flags_use_gflags.cpp
flags_use_no_gflags.cpp Remove unnecessary "static" for definitions in anonymous namespace (#165035) 2025-10-11 00:04:23 +00:00
Flags.h [18/N] Fix extra warnings brought by clang-tidy-17 (#144014) 2025-01-08 17:21:55 +00:00
flat_hash_map.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
Float4_e2m1fn_x2.h Move Float4 to headeronly (#159414) 2025-07-30 15:34:01 +00:00
Float8_e4m3fn-inl.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e4m3fn.cpp
Float8_e4m3fn.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e4m3fnuz-inl.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e4m3fnuz.cpp Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e4m3fnuz.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e5m2-inl.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e5m2.cpp Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e5m2.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e5m2fnuz-inl.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e5m2fnuz.cpp Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e5m2fnuz.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e8m0fnu-inl.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
Float8_e8m0fnu.cpp add the torch.float8_e8m0fnu dtype to PyTorch (#147466) 2025-02-20 13:55:42 +00:00
Float8_e8m0fnu.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
floating_point_utils.h Move some of vec into headeronly in preparation for Half.h (#158976) 2025-07-29 05:43:53 +00:00
FunctionRef.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
Gauge.cpp add a new Guage API with an empty backend to PyTorch core (#134883) 2024-09-03 17:08:47 +00:00
Gauge.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
generic_math.h Fix a div_mod bug in generic_math.h (#157383) 2025-07-02 12:22:57 +00:00
Half-inl.h Move Half to headeronly (#159172) 2025-07-30 16:11:58 +00:00
Half.cpp
Half.h Move Half to headeronly (#159172) 2025-07-30 16:11:58 +00:00
hash.h Fix Wextra-semi warnings (#139000) 2024-10-28 21:48:51 +00:00
IdWrapper.h
int128.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
int128.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
intrusive_ptr.cpp
intrusive_ptr.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
IntrusiveList.h [nativert] move intrusive list to c10/util (#152754) 2025-05-05 18:49:56 +00:00
irange.h [caffe][executorch] rename to avoid shadow in irange (#157107) 2025-06-30 00:17:09 +00:00
Lazy.h [5/N] Fix extra warnings brought by clang-tidy-17 (#138403) 2024-10-21 02:59:54 +00:00
LeftRight.cpp
LeftRight.h [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
llvmMathExtras.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
Load.h [2/N] Enable UBSAN tests (#141740) 2024-12-03 20:52:26 +00:00
logging_is_google_glog.h
logging_is_not_google_glog.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
Logging.cpp Enable -Wunused on torch targets (#150077) 2025-05-02 07:14:19 +00:00
Logging.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
MathConstants.cpp
MathConstants.h
MaybeOwned.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
Metaprogramming.cpp
Metaprogramming.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
NetworkFlow.cpp [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
NetworkFlow.h C++ network flow implementation in c10 (#132188) 2024-08-21 18:40:54 +00:00
numa.cpp Enable -Wunused on torch targets (#150077) 2025-05-02 07:14:19 +00:00
numa.h
Optional.cpp
Optional.h Disable c10::optional macros (#138912) 2024-12-17 09:22:47 +00:00
OptionalArrayRef.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
order_preserving_flat_hash_map.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
overflows.h move c10::overflows to its own header (#140564) 2024-11-18 15:56:21 +00:00
overloaded.h
ParallelGuard.cpp Turn some variables and functions into static (#136847) 2024-10-29 17:01:56 +00:00
ParallelGuard.h
python_stub.h
qint8.h Migrate easy q(u)int/bits stuff to torch/headeronly (#159302) 2025-07-30 03:41:27 +00:00
qint32.h Migrate easy q(u)int/bits stuff to torch/headeronly (#159302) 2025-07-30 03:41:27 +00:00
quint2x4.h Migrate easy q(u)int/bits stuff to torch/headeronly (#159302) 2025-07-30 03:41:27 +00:00
quint4x2.h Migrate easy q(u)int/bits stuff to torch/headeronly (#159302) 2025-07-30 03:41:27 +00:00
quint8.h Migrate easy q(u)int/bits stuff to torch/headeronly (#159302) 2025-07-30 03:41:27 +00:00
Registry.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
safe_numerics.h Overload mul_overflows for size_t (#155736) 2025-06-30 22:57:28 +00:00
ScopeExit.h
Semaphore.h [nativert] port semaphore to c10 util (#153504) 2025-05-28 19:17:30 +00:00
signal_handler.cpp [1/N] Remove unused header inclusion (#165763) 2025-10-18 05:23:11 +00:00
signal_handler.h [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
SmallBuffer.h
SmallVector.cpp
SmallVector.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
sparse_bitset.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
ssize.h
static_tracepoint_elfx86.h Flag TORCH_SDT_SEMAPHORE as being name resovable (#141191) 2024-11-23 01:39:44 +00:00
static_tracepoint.h
strides.h [1/N] Change static functions in headers to inline (#127727) 2024-06-03 04:34:36 +00:00
string_utils.h Eliminate c10 string_utils (#138499) 2024-10-23 13:40:19 +00:00
string_view.h [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
StringUtil.cpp [nativert] Port string join and split to c10/util (#152873) 2025-05-07 03:58:11 +00:00
StringUtil.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
strong_type.h [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00
Synchronized.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
tempfile.cpp Add and use thread-safe strerror (#140472) 2024-11-19 04:24:17 +00:00
tempfile.h
thread_name.cpp Add missing #include <array> to thread_name.cpp (#128664) 2024-06-14 07:49:09 +00:00
thread_name.h expose set_thread_name to Python and set thread names (#128448) 2024-06-13 16:38:23 +00:00
ThreadLocal.h [2/N] Enable cppcoreguidelines-special-member-functions (#138670) 2024-10-24 04:35:18 +00:00
ThreadLocalDebugInfo.cpp
ThreadLocalDebugInfo.h [2/N] Enable cppcoreguidelines-special-member-functions (#138670) 2024-10-24 04:35:18 +00:00
Type_demangle.cpp
Type_no_demangle.cpp
Type.h
TypeCast.cpp [codemod] Add [[noreturn]] to 2 files inc caffe2/c10/util/TypeCast.cpp (#129575) 2024-06-27 17:23:22 +00:00
TypeCast.h [doc]: Small typos (#162982) 2025-09-16 17:42:19 +00:00
typeid.cpp Fix extra semicolon warning (#148291) 2025-03-03 18:51:44 +00:00
typeid.h [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
TypeIndex.h [1/N] Deprecate c10::string_view and at::string (#151972) 2025-04-29 07:23:52 +00:00
TypeList.cpp
TypeList.h
TypeSafeSignMath.h Move Float8 variations to headeronly (#159415) 2025-07-31 22:05:43 +00:00
TypeTraits.cpp
TypeTraits.h
Unicode.cpp
Unicode.h
UniqueVoidPtr.cpp Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
UniqueVoidPtr.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
Unroll.h
WaitCounter.cpp Don't return values in void functions (#164809) 2025-10-08 01:04:14 +00:00
WaitCounter.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
WaitCounterDynamicBackend.h [pytorch][monitoring] Dynamic backend for WaitCounter (#135967) 2024-09-15 18:07:49 +00:00
win32-headers.h