Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/lstm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ be computed with :

.. math::

z = \sigma(W x_t + U h_{t-1} + b)
z = W x_t + U h_{t-1} + b
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you double check that the code do that? I think so, but I could have looked at the wrong place in the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code for computing z looks like this:

preact = tensor.dot(h_, tparams[_p(prefix, 'U')])
preact += x_
https://github.com/lisa-lab/DeepLearningTutorials/blob/master/code/lstm.py#L175-L176


The result is then sliced to obtain the pre-nonlinearity activations for
:math:`i`, :math:`f`, :math:`\widetilde{C_t}`, and :math:`o` and the
Expand Down