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

Function tensor

include/cute/tensor_impl.hpp:508–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506// Return the subtensor of a mode
507template <int... Is, class Tensor>
508CUTE_HOST_DEVICE constexpr
509auto
510tensor(Tensor&& tensor)
511{
512 if constexpr (sizeof...(Is) == 0) {
513 return tensor;
514 } else {
515 return make_tensor(tensor.data(), get<Is...>(tensor.layout()));
516 }
517
518 CUTE_GCC_UNREACHABLE;
519}
520
521// Return the layout of a mode
522template <int... Is, class Engine, class Layout>

Callers 12

TESTFunction · 0.85
TESTFunction · 0.85
segsumFunction · 0.85
cumsumFunction · 0.85
initialize_tensorFunction · 0.85
segsumFunction · 0.85
cumsumFunction · 0.85
fillFunction · 0.85
for_eachFunction · 0.85
transformFunction · 0.85
print_tensorFunction · 0.85
print_tensor.hppFile · 0.85

Calls 3

make_tensorFunction · 0.70
dataMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected