()
| 246 | |
| 247 | @requires_coreml_runtime |
| 248 | def test_softmax(): |
| 249 | x = relax.Var("x", relax.TensorStructInfo([10, 10], "float32")) |
| 250 | bb = relax.BlockBuilder() |
| 251 | with bb.function("main", [x]): |
| 252 | with bb.dataflow(): |
| 253 | lv0 = bb.emit(relax.op.nn.softmax(x)) |
| 254 | gv = bb.emit_output(lv0) |
| 255 | bb.emit_func_output(gv) |
| 256 | mod = bb.get() |
| 257 | |
| 258 | x_data = tvm.runtime.tensor(np.random.rand(10, 10).astype("float32"), dev) |
| 259 | verify(mod, [x_data]) |
| 260 | |
| 261 | |
| 262 | @requires_coreml_runtime |
nothing calls this directly
no test coverage detected
searching dependent graphs…