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

Function test_matinv

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

Source from the content-addressed store, hash-verified

118
119
120def test_matinv():
121 @trace(symbolic=True, capture_as_const=True)
122 def fwd(data):
123 return F.matinv(data)
124
125 data = Tensor(np.random.random((5, 5)))
126 result = fwd(data)
127 check_pygraph_dump(fwd, [data], [result])
128
129
130@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

TensorClass · 0.90
check_pygraph_dumpFunction · 0.85
fwdFunction · 0.70

Tested by

no test coverage detected