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

Function transform_leaf

include/cute/algorithm/tuple_algorithms.hpp:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249template <class T, class F>
250CUTE_HOST_DEVICE constexpr
251auto
252transform_leaf(T const& t, F&& f)
253{
254 if constexpr (is_tuple<T>::value) {
255 return transform(t, [&](auto const& a) { return transform_leaf(a, f); });
256 } else {
257 return f(t);
258 }
259
260 CUTE_GCC_UNREACHABLE;
261}
262
263template <class T0, class T1, class F>
264CUTE_HOST_DEVICE constexpr

Callers 10

can_implementFunction · 0.50
can_implementMethod · 0.50
coshapeFunction · 0.50
product_likeFunction · 0.50
idx2crdFunction · 0.50
make_coord_iteratorFunction · 0.50
make_tma_copy_descFunction · 0.50

Calls 2

transformFunction · 0.70
fFunction · 0.50

Tested by 4

can_implementFunction · 0.40
can_implementMethod · 0.40