()
| 231 | |
| 232 | @requires_coreml_runtime |
| 233 | def test_batch_flatten(): |
| 234 | x = relax.Var("x", relax.TensorStructInfo([10, 10, 10], "float32")) |
| 235 | bb = relax.BlockBuilder() |
| 236 | with bb.function("main", [x]): |
| 237 | with bb.dataflow(): |
| 238 | lv0 = bb.emit(relax.op.nn.batch_flatten(x)) |
| 239 | gv = bb.emit_output(lv0) |
| 240 | bb.emit_func_output(gv) |
| 241 | mod = bb.get() |
| 242 | |
| 243 | x_data = tvm.runtime.tensor(np.random.rand(10, 10, 10).astype("float32"), dev) |
| 244 | verify(mod, [x_data]) |
| 245 | |
| 246 | |
| 247 | @requires_coreml_runtime |
nothing calls this directly
no test coverage detected
searching dependent graphs…