Skip to content

Commit 80c5acd

Browse files
committed
update
1 parent 9a732f0 commit 80c5acd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,10 +1088,6 @@ def maybe_free_model_hooks(self):
10881088
is a no-op. Make sure to add this function to the end of the `__call__` function of your pipeline so that it
10891089
functions correctly when applying enable_model_cpu_offload.
10901090
"""
1091-
1092-
if hasattr(self, "_diffusers_hook"):
1093-
self._diffusers_hook.reset_state()
1094-
10951091
if not hasattr(self, "_all_hooks") or len(self._all_hooks) == 0:
10961092
# `enable_model_cpu_offload` has not be called, so silently do nothing
10971093
return

0 commit comments

Comments
 (0)