MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / wrapper

Function wrapper

deepspeed/runtime/compiler.py:68–71  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

66
67 @functools.wraps(func)
68 def wrapper(*args, **kwargs):
69 if min_version is None or required_torch_version(min_version=min_version):
70 return func(*args, **kwargs)
71 return disable(func)(*args, **kwargs)
72
73 return wrapper
74

Calls 3

required_torch_versionFunction · 0.90
funcFunction · 0.85
disableFunction · 0.85

Tested by

no test coverage detected