Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion colossalai/engine/ophooks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def register_ophooks_recursively(module: torch.nn.Module,
assert isinstance(ophook_list, (list, tuple))
assert len(ophook_list) > 0, 'expected at least 1 hook in the argument ophook_list but found 0'
for hook in ophook_list:
assert (isinstance(hook, BaseOpHook))
assert (isinstance(hook, BaseOpHook))

# Add hooks for submodules
for child_name, child in module.named_children():
Expand Down