MCPcopy Create free account
hub / github.com/apache/tvm / transpose

Function transpose

python/tvm/topi/transform.py:110–125  ·  view source on GitHub ↗

Permute the dimensions of an array. Parameters ---------- a : tvm.te.Tensor The tensor to be expanded. axes: tuple of ints, optional By default, reverse the dimensions. Returns ------- ret : tvm.te.Tensor

(a, axes=None)

Source from the content-addressed store, hash-verified

108
109
110def transpose(a, axes=None):
111 """Permute the dimensions of an array.
112
113 Parameters
114 ----------
115 a : tvm.te.Tensor
116 The tensor to be expanded.
117
118 axes: tuple of ints, optional
119 By default, reverse the dimensions.
120
121 Returns
122 -------
123 ret : tvm.te.Tensor
124 """
125 return cpp.transpose(a, axes)
126
127
128def flip(a, axis=0):

Callers 7

exclusive_scanFunction · 0.85
inclusive_scanFunction · 0.85
sortFunction · 0.85
sort_thrustFunction · 0.85
argsortFunction · 0.85
topkFunction · 0.85
topk_thrustFunction · 0.85

Calls 1

transposeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…