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

Function func

imperative/python/megengine/tools/profile_analyze.py:253–261  ·  view source on GitHub ↗
(
            opr,
            *,
            f0=TimeFuncHelper.eval_time_func(prof_type, args.top_end_key, np.max)
        )

Source from the content-addressed store, hash-verified

251 tab = []
252
253 def func(
254 opr,
255 *,
256 f0=TimeFuncHelper.eval_time_func(prof_type, args.top_end_key, np.max)
257 ):
258 t = f0(opr)
259 if t is not None and (t < args.min_time or t > args.max_time):
260 return None
261 return t
262
263 records = analyzer.select(
264 func,

Callers 15

perf_funcFunction · 0.70
wrapperFunction · 0.50
_eval_timeMethod · 0.50
wrapperFunction · 0.50
safe_callMethod · 0.50
interpretMethod · 0.50
_anyFunction · 0.50
map_fMethod · 0.50
run_transformMethod · 0.50
wrapperFunction · 0.50
safe_callFunction · 0.50
_run_wrappedFunction · 0.50

Calls 1

eval_time_funcMethod · 0.80

Tested by

no test coverage detected