(self, name: str | None = None)
| 266 | return module._diffusers_hook |
| 267 | |
| 268 | def _set_context(self, name: str | None = None) -> None: |
| 269 | for hook_name in reversed(self._hook_order): |
| 270 | hook = self.hooks[hook_name] |
| 271 | if hook._is_stateful: |
| 272 | hook._set_context(self._module_ref, name) |
| 273 | |
| 274 | for registry in self._get_child_registries(): |
| 275 | registry._set_context(name) |
| 276 | |
| 277 | def _get_child_registries(self) -> list["HookRegistry"]: |
| 278 | """Return registries of child modules, using a cached list when available. |
nothing calls this directly
no test coverage detected