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 #73 from JiaqiLiu/master
Browse files Browse the repository at this point in the history
Fix: Doc for LockedDropout Input Shape
  • Loading branch information
PetrochukM committed May 5, 2019
2 parents 5f7320d + 71d2ce1 commit 4753e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchnlp/nn/lock_dropout.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, p=0.5):
def forward(self, x):
"""
Args:
x (:class:`torch.FloatTensor` [batch size, sequence length, rnn hidden size]): Input to
x (:class:`torch.FloatTensor` [sequence length, batch size, rnn hidden size]): Input to
apply dropout too.
"""
if not self.training or not self.p:
Expand Down

0 comments on commit 4753e4f

Please sign in to comment.