()
| 159 | |
| 160 | |
| 161 | def test_prod(): |
| 162 | @R.function |
| 163 | def foo(x: R.Tensor((1, 2, 3, 4), "float32")) -> R.Tensor((1, 3, 4), "float32"): |
| 164 | gv: R.Tensor((1, 3, 4), "float32") = R.prod(x, axis=1) |
| 165 | return gv |
| 166 | |
| 167 | x = relax.Var("x", R.Tensor((1, 2, 3, 4), "float32")) |
| 168 | bb = relax.BlockBuilder() |
| 169 | with bb.function("foo", [x]): |
| 170 | gv = bb.emit(relax.op.prod(x, axis=1)) |
| 171 | bb.emit_func_output(gv) |
| 172 | |
| 173 | _check(foo, bb.get()["foo"]) |
| 174 | |
| 175 | |
| 176 | def test_std(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…