Skip to content

Commit b062bd9

Browse files
committed
print.
1 parent 06b3919 commit b062bd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,7 @@ def remove_all_hooks(self):
983983
r"""
984984
Removes all hooks that were added when using `enable_sequential_cpu_offload` or `enable_model_cpu_offload`.
985985
"""
986+
print("Within remove_all_hooks().")
986987
for _, model in self.components.items():
987988
if isinstance(model, torch.nn.Module) and hasattr(model, "_hf_hook"):
988989
accelerate.hooks.remove_hook_from_module(model, recurse=True)

0 commit comments

Comments
 (0)