We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b062bd9 commit 360935cCopy full SHA for 360935c
src/diffusers/pipelines/pipeline_utils.py
@@ -986,6 +986,7 @@ def remove_all_hooks(self):
986
print("Within remove_all_hooks().")
987
for _, model in self.components.items():
988
if isinstance(model, torch.nn.Module) and hasattr(model, "_hf_hook"):
989
+ print(f"{model.__class__.__name__=}")
990
accelerate.hooks.remove_hook_from_module(model, recurse=True)
991
self._all_hooks = []
992
0 commit comments