MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / wrapper

Function wrapper

diffusers/src/diffusers/utils/accelerate_utils.py:43–46  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

41 return method
42
43 def wrapper(self, *args, **kwargs):
44 if hasattr(self, "_hf_hook") and hasattr(self._hf_hook, "pre_forward"):
45 self._hf_hook.pre_forward(self)
46 return method(self, *args, **kwargs)
47
48 return wrapper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected