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

Function reverse

include/cute/algorithm/tuple_algorithms.hpp:1042–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040/// @return A tuple of the elements of @c t in reverse order.
1041template <class T>
1042CUTE_HOST_DEVICE constexpr
1043auto
1044reverse(T const& t)
1045{
1046 if constexpr (is_tuple<T>::value) {
1047 return detail::apply(t, [](auto const&... a){ return cute::make_tuple(a...); }, tuple_rseq<T>{});
1048 } else {
1049 return t;
1050 }
1051}
1052
1053} // end namespace cute

Callers 15

TESTFunction · 0.85
runMethod · 0.85
TestAllConv2dFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
state_initMethod · 0.85
post_inter_2Method · 0.85
get_shape_AMethod · 0.85
get_shape_BMethod · 0.85
get_shape_CMethod · 0.85

Calls 1

applyFunction · 0.85

Tested by 7

runMethod · 0.68
TestAllConv2dFunction · 0.68
state_initMethod · 0.68
post_inter_2Method · 0.68