Helper to set context on all hooks in the model.
(self, model, context_name)
| 84 | ) |
| 85 | |
| 86 | def _set_context(self, model, context_name): |
| 87 | """Helper to set context on all hooks in the model.""" |
| 88 | for module in model.modules(): |
| 89 | if hasattr(module, "_diffusers_hook"): |
| 90 | module._diffusers_hook._set_context(context_name) |
| 91 | |
| 92 | def _get_calibration_data(self, model): |
| 93 | for module in model.modules(): |
no outgoing calls
no test coverage detected