MCPcopy Index your code
hub / github.com/apache/tvm / transpose

Method transpose

tests/python/disco/test_session.py:234–238  ·  view source on GitHub ↗
(A: T.Buffer((8, 16), "float32"), B: T.Buffer((16, 8), "float32"))

Source from the content-addressed store, hash-verified

232 class TestMod:
233 @T.prim_func(s_tir=True)
234 def transpose(A: T.Buffer((8, 16), "float32"), B: T.Buffer((16, 8), "float32")):
235 for i, j in T.grid(16, 8):
236 with T.sblock("transpose"):
237 vi, vj = T.axis.remap("SS", [i, j])
238 B[vi, vj] = A[vj, vi]
239
240 @R.function
241 def main(A: R.Tensor((8, 16), dtype="float32")) -> R.Tensor((16, 8), dtype="float32"):

Callers 15

_impl_v13Method · 0.45
convert_convMethod · 0.45
_te_attentionFunction · 0.45
te_gather_ndFunction · 0.45
scatter_ndFunction · 0.45
transposeFunction · 0.45
batch_to_space_nd_pythonFunction · 0.45
conv2d_hwcn_pythonFunction · 0.45
_conv3d_ndhwc_pythonFunction · 0.45
attention_pythonFunction · 0.45

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected