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

Function transform_apply

include/cute/algorithm/tuple_algorithms.hpp:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124template <class T, class F, class G>
125CUTE_HOST_DEVICE constexpr
126auto
127transform_apply(T&& t, F&& f, G&& g)
128{
129 if constexpr (is_tuple<remove_cvref_t<T>>::value) {
130 return detail::tapply(static_cast<T&&>(t), f, g, tuple_seq<T>{});
131 } else {
132 return g(f(static_cast<T&&>(t)));
133 }
134
135 CUTE_GCC_UNREACHABLE;
136}
137
138template <class T0, class T1, class F, class G>
139CUTE_HOST_DEVICE constexpr

Callers 15

filter_tupleFunction · 0.70
visitMethod · 0.50
can_implementMethod · 0.50
get_workspace_sizeMethod · 0.50
initialize_workspaceMethod · 0.50
Sm90VisitorImplBaseClass · 0.50
get_tma_epi_tileMethod · 0.50

Calls 3

gFunction · 0.85
tapplyFunction · 0.70
fFunction · 0.50

Tested by 9

visitMethod · 0.40
can_implementMethod · 0.40
get_workspace_sizeMethod · 0.40
initialize_workspaceMethod · 0.40
get_tma_epi_tileMethod · 0.40