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

Method main

tests/python/contrib/test_tir_triton_integration.py:89–94  ·  view source on GitHub ↗
(x: R.Tensor(("m",), "float32"), y: R.Tensor(("m",), "float32"))

Source from the content-addressed store, hash-verified

87
88 @R.function
89 def main(x: R.Tensor(("m",), "float32"), y: R.Tensor(("m",), "float32")):
90 m = T.int64()
91 with R.dataflow():
92 output = R.call_tir(Module.add, [x, y], relax.TensorStructInfo((m,), "float32"))
93 R.output(output)
94 return output
95
96 # Constexpr parameters (BLOCK_SIZE) stay in the kernel arguments, and the
97 # thread extent is 256 because the kernel is compiled with num_warps=8.

Callers

nothing calls this directly

Calls 4

TensorMethod · 0.80
dataflowMethod · 0.80
call_tirMethod · 0.80
outputMethod · 0.80

Tested by

no test coverage detected