This is an automated email from the ASF dual-hosted git repository. zhasheng pushed a commit to branch szha-patch-1 in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
commit 9a35b97decb1d2405d688dfdd13f72b5f586ee31 Author: Sheng Zha <[email protected]> AuthorDate: Tue Jul 17 16:02:10 2018 -0700 fix rnn api docs fix default values --- python/mxnet/gluon/rnn/rnn_cell.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/python/mxnet/gluon/rnn/rnn_cell.py b/python/mxnet/gluon/rnn/rnn_cell.py index 0cda938..21cc804 100644 --- a/python/mxnet/gluon/rnn/rnn_cell.py +++ b/python/mxnet/gluon/rnn/rnn_cell.py @@ -111,7 +111,7 @@ class RecurrentCell(Block): Prefix for names of `Block`s (this prefix is also used for names of weights if `params` is `None` i.e. if `params` are being created and not reused) - params : Parameter or None, optional + params : Parameter or None, default None Container for weight sharing between cells. A new Parameter container is created if `params` is `None`. """ @@ -331,9 +331,9 @@ class RNNCell(HybridRecurrentCell): h2h_weight_initializer : str or Initializer Initializer for the recurrent weights matrix, used for the linear transformation of the recurrent state. - i2h_bias_initializer : str or Initializer + i2h_bias_initializer : str or Initializer, default 'zeros' Initializer for the bias vector. - h2h_bias_initializer : str or Initializer + h2h_bias_initializer : str or Initializer, default 'zeros' Initializer for the bias vector. prefix : str, default 'rnn_' Prefix for name of `Block`s @@ -437,22 +437,20 @@ class LSTMCell(HybridRecurrentCell): h2h_weight_initializer : str or Initializer Initializer for the recurrent weights matrix, used for the linear transformation of the recurrent state. - i2h_bias_initializer : str or Initializer, default 'lstmbias' - Initializer for the bias vector. By default, bias for the forget - gate is initialized to 1 while all other biases are initialized - to zero. - h2h_bias_initializer : str or Initializer + i2h_bias_initializer : str or Initializer, default 'zeros' + Initializer for the bias vector. + h2h_bias_initializer : str or Initializer, default 'zeros' Initializer for the bias vector. prefix : str, default 'lstm_' Prefix for name of `Block`s (and name of weight if params is `None`). - params : Parameter or None + params : Parameter or None, default None Container for weight sharing between cells. Created if `None`. - activation : str + activation : str, default 'tanh' Activation type to use. See nd/symbol Activation for supported types. - recurrent_activation : str + recurrent_activation : str, default 'sigmoid' Activation type to use for the recurrent step. See nd/symbol Activation for supported types. @@ -562,14 +560,14 @@ class GRUCell(HybridRecurrentCell): h2h_weight_initializer : str or Initializer Initializer for the recurrent weights matrix, used for the linear transformation of the recurrent state. - i2h_bias_initializer : str or Initializer + i2h_bias_initializer : str or Initializer, default 'zeros' Initializer for the bias vector. - h2h_bias_initializer : str or Initializer + h2h_bias_initializer : str or Initializer, default 'zeros' Initializer for the bias vector. prefix : str, default 'gru_' prefix for name of `Block`s (and name of weight if params is `None`). - params : Parameter or None + params : Parameter or None, default None Container for weight sharing between cells. Created if `None`.
