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

Method product

tests/python/relax/test_transform_cse.py:403–411  ·  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

401
402 @T.prim_func(private=True, s_tir=True)
403 def product(
404 A: T.Buffer([16, 16], "int32"),
405 B: T.Buffer([16, 16], "int32"),
406 C: T.Buffer([16, 16], "int32"),
407 ):
408 for iters in T.grid(*A.shape):
409 with T.sblock("compute"):
410 i, j = T.axis.remap("SS", iters)
411 C[i, j] = A[i, j] * B[i, j]
412
413 @T.prim_func(private=True, s_tir=True)
414 def sum(

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected