Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #76 from rishishian/master
Browse files Browse the repository at this point in the history
fix a little bug in weight_drop.py
  • Loading branch information
PetrochukM committed Jul 12, 2019
2 parents f57af13 + eb28005 commit 09c0acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchnlp/nn/weight_drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def forward(*args, **kwargs):
w = torch.nn.functional.dropout(raw_w, p=dropout, training=module.training)
setattr(module, name_w, w)

return original_module_forward(*args)
return original_module_forward(*args, **kwargs)

setattr(module, 'forward', forward)

Expand Down

0 comments on commit 09c0acd

Please sign in to comment.