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

Function _reverse_tuple

python/cutlass_cppgen/backend/evt/ir/layout_algorithm.py:106–109  ·  view source on GitHub ↗
(nested_tuple: tuple)

Source from the content-addressed store, hash-verified

104 return nested_tuple
105
106def _reverse_tuple(nested_tuple: tuple):
107 if isinstance(nested_tuple, tuple):
108 return tuple([_reverse_tuple(item) for item in nested_tuple][::-1])
109 return nested_tuple
110
111def _get_first_lhs_nonzero_stride(stride_list, idx):
112 for i in reversed(range(idx)):

Callers 6

stride_mnlMethod · 0.90
get_stride_mnlMethod · 0.90
shapeMethod · 0.90
strideMethod · 0.90
broadcastMethod · 0.90
reshapeMethod · 0.90

Calls 1

tupleClass · 0.85

Tested by

no test coverage detected