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

Function wrapped

lite/pylite/test/test_utils.py:15–17  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

13
14 @functools.wraps(func)
15 def wrapped(*args, **kwargs):
16 if LiteGlobal.get_device_count(LiteDeviceType.LITE_CUDA):
17 return func(*args, **kwargs)
18
19 return wrapped
20

Callers

nothing calls this directly

Calls 2

funcFunction · 0.50
get_device_countMethod · 0.45

Tested by

no test coverage detected