MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / wrapper

Function wrapper

diffsynth/models/stepvideo_text_encoder.py:48–50  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

46def with_empty_init(func):
47 @wraps(func)
48 def wrapper(*args, **kwargs):
49 with EmptyInitOnDevice('cpu'):
50 return func(*args, **kwargs)
51 return wrapper
52
53

Callers

nothing calls this directly

Calls 1

EmptyInitOnDeviceClass · 0.85

Tested by

no test coverage detected