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

Function wrapper

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

Source from the content-addressed store, hash-verified

82
83 @functools.wraps(func)
84 def wrapper(*args, **kwargs):
85 if min_version is None or required_torch_version(min_version=min_version):
86 return func(*args, **kwargs)
87 return disable(func)(*args, **kwargs)
88
89 return wrapper
90

Calls 3

required_torch_versionFunction · 0.90
funcFunction · 0.85
disableFunction · 0.70

Tested by

no test coverage detected