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

Function with_empty_init

diffsynth/models/stepvideo_text_encoder.py:46–51  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

44
45
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
54

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected