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

Function wrapper

imperative/python/megengine/logger.py:249–253  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

247
248 @wraps(func)
249 def wrapper(*args, **kwargs):
250 if _all_log_counter[hash_key] <= count:
251 _call_count_logger.warning(msg)
252 _all_log_counter[hash_key] += 1
253 return func(*args, **kwargs)
254
255 return wrapper

Callers

nothing calls this directly

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected