Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ func
Function
func
imperative/python/test/unit/jit/test_tracing.py:741–742 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
739
# set opt_level = 1 to avoid fusing dimshuffle and reduce at the same time
740
@trace(opt_level=1, graph_opt_config=config)
741
def
func(x):
742
return
x + 1
743
744
x = tensor(2)
745
y = func(x)
Callers
4
run
Function · 0.70
test_trace_naming
Function · 0.70
test_invalid_inp_error
Function · 0.70
test_partial_trace_fwd_bwd
Function · 0.70
Calls
4
fwd_only
Function · 0.85
max
Method · 0.45
backward
Method · 0.45
clear_grad
Method · 0.45
Tested by
no test coverage detected