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

Method copy

tests/python/relax/test_transform.py:324–335  ·  view source on GitHub ↗
(
            A: T.Buffer((2, 3), "int32"), B: T.Buffer((2, 3), "int32"), C: T.Buffer((2, 3), "int32")
        )

Source from the content-addressed store, hash-verified

322 class Input:
323 @T.prim_func(s_tir=True)
324 def copy(
325 A: T.Buffer((2, 3), "int32"), B: T.Buffer((2, 3), "int32"), C: T.Buffer((2, 3), "int32")
326 ):
327 # copies the contents of C into A and B
328 T.func_attr({"tirx.noalias": True})
329 for i0, i1 in T.grid(T.int64(2), T.int64(3)):
330 with T.sblock("T_zeros"):
331 ax0, ax1 = T.axis.remap("SS", [i0, i1])
332 T.reads(C[ax0, ax1])
333 T.writes(A[ax0, ax1], B[ax0, ax1])
334 A[ax0, ax1] = C[ax0, ax1]
335 B[ax0, ax1] = C[ax0, ax1]
336
337 @R.function
338 def foo(

Callers 15

__init__Method · 0.45
_multibox_ref_numpyFunction · 0.45
fooMethod · 0.45
test_cacheFunction · 0.45
test_ptx_scalar_f32_mathFunction · 0.45
test2Function · 0.45
test3Function · 0.45
test5Function · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected