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

Function run

imperative/python/test/unit/functional/test_tensor.py:54–55  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

52 for axis in range(-2, 3):
53
54 def run(data):
55 return F.diag(data, k=axis)
56
57 opr_test(cases, run, ref_fn=lambda x: np.diag(x, axis), network=network)
58

Callers

nothing calls this directly

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected