Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
  • Loading branch information
kylesayrs committed Jan 29, 2025
1 parent 1b11b54 commit eb83e67
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/llmcompressor/modifiers/utils/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ def wrapped_hook(*args, **kwargs):
return handle

def remove_hooks(self, handles: Optional[Set[RemovableHandle]] = None):
"""Remove all hooks belonging to a modifier"""
"""
Removes hooks registered by this modifier
:param handles: optional list of handles to remove, defaults to all hooks
registerd by this modifier
"""
if handles is None:
handles = self._hooks

Expand Down

0 comments on commit eb83e67

Please sign in to comment.