MCPcopy Index your code
hub / github.com/apache/tvm / test_multiply

Function test_multiply

tests/python/relax/test_codegen_coreml.py:124–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123@requires_coreml_runtime
124def test_multiply():
125 x = relax.Var("x", relax.TensorStructInfo([10, 10], "float32"))
126 y = relax.Var("y", relax.TensorStructInfo([10, 10], "float32"))
127 bb = relax.BlockBuilder()
128 with bb.function("main", [x, y]):
129 with bb.dataflow():
130 lv0 = bb.emit(relax.op.multiply(x, y))
131 gv = bb.emit_output(lv0)
132 bb.emit_func_output(gv)
133 mod = bb.get()
134
135 x_data = tvm.runtime.tensor(np.random.rand(10, 10).astype("float32"), dev)
136 y_data = tvm.runtime.tensor(np.random.rand(10, 10).astype("float32"), dev)
137 verify(mod, [x_data, y_data])
138
139
140@requires_coreml_runtime

Callers

nothing calls this directly

Calls 9

functionMethod · 0.95
dataflowMethod · 0.95
emitMethod · 0.95
emit_outputMethod · 0.95
emit_func_outputMethod · 0.95
getMethod · 0.95
verifyFunction · 0.70
multiplyMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…