()
| 129 | |
| 130 | |
| 131 | def test_max(): |
| 132 | @R.function |
| 133 | def foo(x: R.Tensor((1, 2, 3, 4), "float32")) -> R.Tensor((1, 1, 1, 1), "float32"): |
| 134 | gv: R.Tensor((1, 1, 1, 1), "float32") = R.variance(x, axis=[-1, -2, -3], keepdims=True) |
| 135 | return gv |
| 136 | |
| 137 | x = relax.Var("x", R.Tensor((1, 2, 3, 4), "float32")) |
| 138 | bb = relax.BlockBuilder() |
| 139 | with bb.function("foo", [x]): |
| 140 | gv = bb.emit(relax.op.variance(x, axis=[-1, -2, -3], keepdims=True)) |
| 141 | bb.emit_func_output(gv) |
| 142 | |
| 143 | _check(foo, bb.get()["foo"]) |
| 144 | |
| 145 | |
| 146 | def test_min(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…