(
x: R.Tensor((2, 3, 4, 5), "float32"), y: R.Tensor((6, 2, 3, 5, 7), "float32")
)
| 37 | def test_matmul(): |
| 38 | @R.function |
| 39 | def foo( |
| 40 | x: R.Tensor((2, 3, 4, 5), "float32"), y: R.Tensor((6, 2, 3, 5, 7), "float32") |
| 41 | ) -> R.Tensor((6, 2, 3, 4, 7), "float32"): |
| 42 | gv: R.Tensor((6, 2, 3, 4, 7), "float32") = R.matmul(x, y) |
| 43 | return gv |
| 44 | |
| 45 | x = relax.Var("x", R.Tensor((2, 3, 4, 5), "float32")) |
| 46 | y = relax.Var("y", R.Tensor((6, 2, 3, 5, 7), "float32")) |