()
| 144 | |
| 145 | |
| 146 | def test_min(): |
| 147 | @R.function |
| 148 | def foo(x: R.Tensor((1, 2, 3, 4), "float32")) -> R.Tensor((1, 3, 4), "float32"): |
| 149 | gv: R.Tensor((1, 3, 4), "float32") = R.min(x, axis=1) |
| 150 | return gv |
| 151 | |
| 152 | x = relax.Var("x", R.Tensor((1, 2, 3, 4), "float32")) |
| 153 | bb = relax.BlockBuilder() |
| 154 | with bb.function("foo", [x]): |
| 155 | gv = bb.emit(relax.op.min(x, axis=1)) |
| 156 | bb.emit_func_output(gv) |
| 157 | |
| 158 | _check(foo, bb.get()["foo"]) |
| 159 | |
| 160 | |
| 161 | def test_prod(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…