Skip to content

Commit

Permalink
Merge pull request #838 from matthiasreisser/docstring_additions
Browse files Browse the repository at this point in the history
added docstring to apply method of LSTM
  • Loading branch information
rizar committed Jan 3, 2016
2 parents 260296d + f295d76 commit 83c5d2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blocks/bricks/recurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ def apply(self, inputs, states, cells, mask=None):
features * 4). The `inputs` needs to be four times the
dimension of the LSTM brick to insure each four gates receive
different transformations of the input. See [Grav13]_
equations 7 to 10 for more details.
equations 7 to 10 for more details. The `inputs` are then split
in this order: Input gates, forget gates, cells and output
gates.
mask : :class:`~tensor.TensorVariable`
A 1D binary array in the shape (batch,) which is 1 if there is
data available, 0 if not. Assumed to be 1-s only if not given.
Expand Down

0 comments on commit 83c5d2a

Please sign in to comment.