This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new bcf3a88  fix rnn api docs (#11788)
bcf3a88 is described below

commit bcf3a8881cb3ff00ee3636599536f203580a79a2
Author: Sheng Zha <[email protected]>
AuthorDate: Tue Jul 17 20:32:14 2018 -0700

    fix rnn api docs (#11788)
    
    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`.
 

Reply via email to