Skip to content

Commit

Permalink
Fix typo in clone_module function (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrikunovEV authored Apr 21, 2022
1 parent 36ac4fb commit f099ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learn2learn/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def clone_module(module, memo=None):
else:
cloned = buff.clone()
clone._buffers[buffer_key] = cloned
memo[param_ptr] = cloned
memo[buff_ptr] = cloned

# Then, recurse for each submodule
if hasattr(clone, '_modules'):
Expand Down

0 comments on commit f099ddc

Please sign in to comment.