szha commented on a change in pull request #7352: add Sequential compatibility 
to rnn layers
URL: https://github.com/apache/incubator-mxnet/pull/7352#discussion_r131535173
 
 

 ##########
 File path: python/mxnet/gluon/rnn/rnn_layer.py
 ##########
 @@ -151,10 +151,52 @@ def begin_state(self, batch_size=0, func=ndarray.zeros, 
**kwargs):
             states.append(func(name='%sh0_%d'%(self.prefix, i), **info))
         return states
 
-    def forward(self, inputs, states):
+    def forward(self, inputs, states=None):
+        """Performs the RNN transformation for all time steps.
 
 Review comment:
   ok
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to