fixed comment for nn.lstm

This commit is contained in:
jiangjinsheng 2020-05-19 17:13:48 +08:00
parent c793540cc9
commit 26840bf6a3
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class LSTM(Cell):
num_layers (int): Number of layers of stacked LSTM . Default: 1.
has_bias (bool): Specifies whether has bias `b_ih` and `b_hh`. Default: True.
batch_first (bool): Specifies whether the first dimension of input is batch_size. Default: False.
dropout (float): If not 0, append `Dropout` layer on the outputs of each
dropout (float, int): If not 0, append `Dropout` layer on the outputs of each
LSTM layer except the last layer. Default 0. The range of dropout is [0.0, 1.0].
bidirectional (bool): Specifies whether this is a bidirectional LSTM. If set True,
number of directions will be 2 otherwise number of directions is 1. Default: False.