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

Function wrapper

tests/unit/common.py:563–565  ·  view source on GitHub ↗
(*args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

561 def decorator(func: Callable) -> Callable:
562
563 def wrapper(*args: Any, **kwargs: Any):
564 with EnableDeterminism(seed):
565 return func(*args, **kwargs)
566
567 return wrapper
568

Callers 2

test_noneven_patchesMethod · 0.50

Calls 2

EnableDeterminismClass · 0.85
funcFunction · 0.85

Tested by 2

test_noneven_patchesMethod · 0.40