MCPcopy Create free account
hub / github.com/huggingface/diffusers / set_context

Method set_context

src/diffusers/hooks/hooks.py:49–50  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

47 return self._state_cache[self._current_context]
48
49 def set_context(self, name: str) -> None:
50 self._current_context = name
51
52 def reset(self, *args, **kwargs) -> None:
53 for name, state in list(self._state_cache.items()):

Callers 5

new_forwardMethod · 0.80
new_forwardMethod · 0.80
_set_contextMethod · 0.80
new_forwardMethod · 0.80
new_forwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected