()
| 91 | |
| 92 | @requires_coreml_runtime |
| 93 | def test_add(): |
| 94 | x = relax.Var("x", relax.TensorStructInfo([10, 10], "float32")) |
| 95 | y = relax.Var("y", relax.TensorStructInfo([10, 10], "float32")) |
| 96 | bb = relax.BlockBuilder() |
| 97 | with bb.function("main", [x, y]): |
| 98 | with bb.dataflow(): |
| 99 | lv0 = bb.emit(relax.op.add(x, y)) |
| 100 | gv = bb.emit_output(lv0) |
| 101 | bb.emit_func_output(gv) |
| 102 | mod = bb.get() |
| 103 | x_data = tvm.runtime.tensor(np.random.rand(10, 10).astype("float32"), dev) |
| 104 | y_data = tvm.runtime.tensor(np.random.rand(10, 10).astype("float32"), dev) |
| 105 | verify(mod, [x_data, y_data]) |
| 106 | |
| 107 | |
| 108 | @requires_coreml_runtime |
nothing calls this directly
no test coverage detected
searching dependent graphs…