提交 d15152d5 authored 作者: Frederic Bastien's avatar Frederic Bastien

docstring fix following code review

上级 030192aa
...@@ -2453,18 +2453,18 @@ class RNNBlock(object): ...@@ -2453,18 +2453,18 @@ class RNNBlock(object):
h_t=ReLU(W_ix_t+U_ih_{t-1}+b_{wi}+b_{Ri}) h_t=ReLU(W_ix_t+U_ih_{t-1}+b_{wi}+b_{Ri})
rnn_tanh: A single-gate recurrent neural network with a tanh activation function. rnn_tanh: A single-gate recurrent neural network with a tanh activation function.
.. math:: .. math::
h_t=tanh(W_ix_t+U_ih_{t-1}+b_{wi}+b_{Ri}) h_t=tanh(W_ix_t+U_ih_{t-1}+b_{wi}+b_{Ri})
lstm: A four-gate Long Short-Term Memory network with no peephole connections. lstm: A four-gate Long Short-Term Memory network with no peephole connections.
gru: A three-gate network consisting of Gated Recurrent Units. gru: A three-gate network consisting of Gated Recurrent Units.
input_mode : {'linear', 'skip'} input_mode : {'linear', 'skip'}
linear: input will be multiplied by a biased matrix linear: input will be multiplied by a biased matrix
skip: No operation is performed on the input. The size must match the hidden size. skip: No operation is performed on the input. The size must match the hidden size.
direction_mode : {'unidirectional', 'bidirectional'} direction_mode : {'unidirectional', 'bidirectional'}
unidirectional: The network operates recurrently from thefirst input to the last. unidirectional: The network operates recurrently from the first input to the last.
bidirectional: The network operates from first to last then from last to first and concatenates the results at each layer. bidirectional: The network operates from first to last then from last to first and concatenates the results at each layer.
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论