Skip to content

Commit

Permalink
[doc] variable shape error of LSTMCell, GRUCell (pytorch#2289)
Browse files Browse the repository at this point in the history
  • Loading branch information
donglixp authored and soumith committed Aug 4, 2017
1 parent 977f964 commit 6648677
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions torch/nn/modules/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,11 @@ class LSTMCell(RNNCellBase):
Attributes:
weight_ih: the learnable input-hidden weights, of shape
`(input_size x hidden_size)`
`(4*hidden_size x input_size)`
weight_hh: the learnable hidden-hidden weights, of shape
`(hidden_size x hidden_size)`
bias_ih: the learnable input-hidden bias, of shape `(hidden_size)`
bias_hh: the learnable hidden-hidden bias, of shape `(hidden_size)`
`(4*hidden_size x hidden_size)`
bias_ih: the learnable input-hidden bias, of shape `(4*hidden_size)`
bias_hh: the learnable hidden-hidden bias, of shape `(4*hidden_size)`
Examples::
Expand Down Expand Up @@ -638,11 +638,11 @@ class GRUCell(RNNCellBase):
Attributes:
weight_ih: the learnable input-hidden weights, of shape
`(input_size x hidden_size)`
`(3*hidden_size x input_size)`
weight_hh: the learnable hidden-hidden weights, of shape
`(hidden_size x hidden_size)`
bias_ih: the learnable input-hidden bias, of shape `(hidden_size)`
bias_hh: the learnable hidden-hidden bias, of shape `(hidden_size)`
`(3*hidden_size x hidden_size)`
bias_ih: the learnable input-hidden bias, of shape `(3*hidden_size)`
bias_hh: the learnable hidden-hidden bias, of shape `(3*hidden_size)`
Examples::
Expand Down

0 comments on commit 6648677

Please sign in to comment.