(
x: R.Tensor((4, 8), "float32"),
)
| 361 | |
| 362 | @R.function |
| 363 | def main( |
| 364 | x: R.Tensor((4, 8), "float32"), |
| 365 | ) -> R.Tensor((4, 8), "float32"): |
| 366 | # The VM calls back into Python for these two ops |
| 367 | h = R.call_py_func("layer_norm", (x,), out_sinfo=R.Tensor((4, 8), "float32")) |
| 368 | out = R.call_py_func("silu", (h,), out_sinfo=R.Tensor((4, 8), "float32")) |
| 369 | return out |
| 370 | |
| 371 | mod = HybridVMModule(device=tvm.cpu(0)) |
| 372 | x = torch.randn(4, 8) |
nothing calls this directly
no test coverage detected