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

Function func

imperative/python/test/unit/xla/functional/test_xla_math.py:38–43  ·  view source on GitHub ↗
(lhs, rhs, dout)

Source from the content-addressed store, hash-verified

36
37 @jit.xla_trace(without_host=True)
38 def func(lhs, rhs, dout):
39 gm.attach([lhs, rhs])
40 with gm:
41 out = F.matmul(lhs, rhs, lhs_transpose, rhs_transpose)
42 gm.backward(out, dout)
43 return out, lhs.grad, rhs.grad
44
45 mge_rsts = func(lhs, rhs, dout)
46 xla_rsts = func(lhs, rhs, dout)

Callers 1

testerFunction · 0.70

Calls 7

fake_quant_tensorFunction · 0.90
tqt_forwardFunction · 0.90
lsq_forwardFunction · 0.90
check_non_finiteFunction · 0.85
listFunction · 0.85
attachMethod · 0.45
backwardMethod · 0.45

Tested by

no test coverage detected