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

Function wrap

include/cute/algorithm/tuple_algorithms.hpp:499–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497// Wrap non-tuples into rank-1 tuples or forward
498template <class T>
499CUTE_HOST_DEVICE constexpr
500auto
501wrap(T const& t)
502{
503 if constexpr (is_tuple<T>::value) {
504 return t;
505 } else {
506 return cute::make_tuple(t);
507 }
508
509 CUTE_GCC_UNREACHABLE;
510}
511
512// Unwrap rank-1 tuples until we're left with a rank>1 tuple or a non-tuple
513template <class T>

Callers 4

right_inverseFunction · 0.50
left_inverseFunction · 0.50
product_eachFunction · 0.50
construct_tma_gbasisFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected