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

Method sub

tests/python/relax/test_transform_lambda_lift.py:335–343  ·  view source on GitHub ↗
(
            A: T.Buffer((16, 16), "float32"),
            B: T.Buffer((16, 16), "float32"),
            C: T.Buffer((16, 16), "float32"),
        )

Source from the content-addressed store, hash-verified

333 class Before:
334 @T.prim_func(s_tir=True)
335 def sub(
336 A: T.Buffer((16, 16), "float32"),
337 B: T.Buffer((16, 16), "float32"),
338 C: T.Buffer((16, 16), "float32"),
339 ) -> None:
340 for i, j in T.grid(16, 16):
341 with T.sblock("sub"):
342 vi, vj = T.axis.remap("SS", [i, j])
343 C[vi, vj] = A[vi, vj] - B[vi, vj]
344
345 @R.function
346 def before(c0: R.Tensor((16, 16), "float32"), x: R.Tensor(dtype="float32", ndim=2)):

Callers 15

substitute_templateFunction · 0.45
_camel_to_snakeFunction · 0.45
run_after_passMethod · 0.45
_parse_proton_treeFunction · 0.45
_ffi_name_to_dtypeFunction · 0.45
compress_queryFunction · 0.45
processed_bodyMethod · 0.45
strip_whitespaceFunction · 0.45
test_funcFunction · 0.45
binary_op_region_regionFunction · 0.45

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected