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

Function wrapper

imperative/python/megengine/quantization/utils.py:51–52  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

49 def decorator(func):
50 @wraps(func)
51 def wrapper(self, *args, **kwargs):
52 return func(self, *args, **kwargs)
53
54 if isinstance(func, partial):
55 update_wrapper(func, func.func)

Callers

nothing calls this directly

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected