Method
main
(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
Tested by
no test coverage detected