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

Function _elwise

imperative/python/test/unit/core/test_autodiff.py:22–29  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

20
21
22def _elwise(mode):
23 op = Elemwise(mode)
24
25 def f(*args):
26 (result,) = apply(op, *args)
27 return result
28
29 return f
30
31
32add = _elwise(Elemwise.Mode.ADD)

Callers 2

test_autodiff.pyFile · 0.70
test_elemwiseFunction · 0.50

Calls 1

ElemwiseClass · 0.50

Tested by

no test coverage detected