MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / test_dot

Function test_dot

imperative/python/test/unit/utils/test_network_node.py:168–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166
167
168def test_dot():
169 @trace(symbolic=True, capture_as_const=True)
170 def fwd(x, y):
171 return F.dot(x, y)
172
173 x = Tensor([1.0, 2.0, 3.0])
174 y = Tensor([3.0, 4.0, 5.0])
175 result = fwd(x, y)
176 check_pygraph_dump(fwd, [x, y], [result])
177
178
179def test_svd():

Callers

nothing calls this directly

Calls 3

TensorClass · 0.90
check_pygraph_dumpFunction · 0.85
fwdFunction · 0.70

Tested by

no test coverage detected