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

Function gen

imperative/python/test/unit/utils/test_profiler.py:111–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 cur_frame.f_trace = lambda *_: 1
110
111 def gen():
112 for i in range(10):
113 bts.append(_mge_backtrace())
114 yield i
115
116 ge = gen()
117 next(ge)

Callers 9

test_backtraceFunction · 0.70
runMethod · 0.50
run_apply_on_var_nodeMethod · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
run_graphFunction · 0.50
TESTFunction · 0.50

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected