()
| 174 | |
| 175 | |
| 176 | def test_std(): |
| 177 | @R.function |
| 178 | def foo(x: R.Tensor((1, 2, 3, 4), "float32")) -> R.Tensor((1, 3, 4), "float32"): |
| 179 | gv: R.Tensor((1, 3, 4), "float32") = R.std(x, axis=1) |
| 180 | return gv |
| 181 | |
| 182 | x = relax.Var("x", R.Tensor((1, 2, 3, 4), "float32")) |
| 183 | bb = relax.BlockBuilder() |
| 184 | with bb.function("foo", [x]): |
| 185 | gv = bb.emit(relax.op.std(x, axis=1)) |
| 186 | bb.emit_func_output(gv) |
| 187 | |
| 188 | _check(foo, bb.get()["foo"]) |
| 189 | |
| 190 | |
| 191 | def test_scan(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…