()
| 80 | |
| 81 | |
| 82 | def test_mean(): |
| 83 | @R.function |
| 84 | def foo(x: R.Tensor((1, 2, 3, 4), "float32")) -> R.Tensor((1, 3), "float32"): |
| 85 | gv: R.Tensor((1, 3), "float32") = R.mean(x, axis=[1, 3]) |
| 86 | return gv |
| 87 | |
| 88 | x = relax.Var("x", R.Tensor((1, 2, 3, 4), "float32")) |
| 89 | bb = relax.BlockBuilder() |
| 90 | with bb.function("foo", [x]): |
| 91 | gv = bb.emit(relax.op.mean(x, axis=[1, 3])) |
| 92 | bb.emit_func_output(gv) |
| 93 | |
| 94 | _check(foo, bb.get()["foo"]) |
| 95 | |
| 96 | |
| 97 | def test_median(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…