MCPcopy 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

runFunction · 0.70
test_trace_namingFunction · 0.70
test_invalid_inp_errorFunction · 0.70

Calls 4

fwd_onlyFunction · 0.85
maxMethod · 0.45
backwardMethod · 0.45
clear_gradMethod · 0.45

Tested by

no test coverage detected