Skip to content

Commit

Permalink
Merge pull request #1043 from sygi/rnn-tutorial-iterate
Browse files Browse the repository at this point in the history
information about dimensionality for apply in rnn tutorial
  • Loading branch information
rizar committed Apr 19, 2016
2 parents 1c90f63 + a467530 commit b0fff99
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/rnn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,13 @@ Iterate (or not)
----------------

The ``apply`` method of a recurrent brick accepts an ``iterate`` argument,
which defaults to ``True``. Setting it to ``False`` causes the ``apply`` method
to compute only one step in the sequence.
which defaults to ``True``. It is the reason for passing above a tensor of one
more dimension than described in :meth:`.recurrent.SimpleRecurrent.apply` - the
extra first dimension corresponds to the length of the sequence we are iterating
over.

Setting ``iterate`` to ``False`` causes the ``apply`` method to compute only
one step in the sequence.

This is very useful when you're trying to combine multiple recurrent layers in
a network.
Expand Down

0 comments on commit b0fff99

Please sign in to comment.