PetrochukM / PyTorch-NLP

Basic Utilities for PyTorch Natural Language Processing (NLP)
https://pytorchnlp.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.21k stars 258 forks source link

A little bug in torchnlp/nn/weight_drop.py #75

Closed rishishian closed 5 years ago

rishishian commented 5 years ago

line 24,

Expected Behavior

return original_module_forward(*args, **kwargs)

Actual Behavior

return original_module_forward(*args) u seems to forget writing kwargs

PetrochukM commented 5 years ago

Hi,

Can you please submit a PR to solve this issue?

Thanks!

PetrochukM commented 5 years ago

Merged!