Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
def
_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
32
add = _elwise(Elemwise.Mode.ADD)
Callers
2
test_autodiff.py
File · 0.70
test_elemwise
Function · 0.50
Calls
1
Elemwise
Class · 0.50
Tested by
no test coverage detected