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

Function mul

imperative/python/test/unit/core/test_subgraph.py:129–135  ·  view source on GitHub ↗
(inputs, f, c)

Source from the content-addressed store, hash-verified

127 custom_grad=True,
128 )
129 def mul(inputs, f, c):
130 x, y = inputs[0:2]
131 z = f("*", x, y)
132 (dz,) = yield (z,)
133 dx = f("*", dz, y)
134 dy = f("*", dz, x)
135 yield (dx, dy)
136
137 return mul
138

Callers 14

test_grad_2Function · 0.70
test_wrt_visibilityFunction · 0.70
test_grad_inplaceFunction · 0.70
TESTFunction · 0.50
operator*Method · 0.50
process_mul_termMethod · 0.50
MGB_IMPL_OPR_GRADFunction · 0.50

Calls 1

fFunction · 0.70

Tested by

no test coverage detected