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

Method sum

tests/python/relax/test_transform_cse.py:414–422  ·  view source on GitHub ↗
(
            A: T.Buffer([16, 16], "int32"),
            B: T.Buffer([16, 16], "int32"),
            C: T.Buffer([16, 16], "int32"),
        )

Source from the content-addressed store, hash-verified

412
413 @T.prim_func(private=True, s_tir=True)
414 def sum(
415 A: T.Buffer([16, 16], "int32"),
416 B: T.Buffer([16, 16], "int32"),
417 C: T.Buffer([16, 16], "int32"),
418 ):
419 for iters in T.grid(*A.shape):
420 with T.sblock("compute"):
421 i, j = T.axis.remap("SS", iters)
422 C[i, j] = A[i, j] + B[i, j]
423
424 Expected = Before
425

Callers 15

_isinMethod · 0.45
_linalg_vector_normMethod · 0.45
_normMethod · 0.45
_sumMethod · 0.45
_reduceMethod · 0.45
sumFunction · 0.45
_impl_v2Method · 0.45
_impl_v9Method · 0.45
_impl_v11Method · 0.45

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected