MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / unwrap

Function unwrap

include/cute/algorithm/tuple_algorithms.hpp:514–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512// Unwrap rank-1 tuples until we're left with a rank>1 tuple or a non-tuple
513template <class T>
514CUTE_HOST_DEVICE constexpr
515auto
516unwrap(T const& t)
517{
518 if constexpr (is_tuple<T>::value) {
519 if constexpr (tuple_size<T>::value == 1) {
520 return unwrap(get<0>(t));
521 } else {
522 return t;
523 }
524 } else {
525 return t;
526 }
527
528 CUTE_GCC_UNREACHABLE;
529}
530
531//
532// Flatten and Unflatten

Callers 10

operator()Method · 0.50
storeMethod · 0.50
loadMethod · 0.50
storeMethod · 0.50
loadMethod · 0.50
storeMethod · 0.50
operator()Method · 0.50
composition_implFunction · 0.50
nullspaceFunction · 0.50

Calls

no outgoing calls

Tested by 4

loadMethod · 0.40
storeMethod · 0.40
loadMethod · 0.40
storeMethod · 0.40