piiswrong commented on a change in pull request #7352: add Sequential compatibility to rnn layers URL: https://github.com/apache/incubator-mxnet/pull/7352#discussion_r131535019
########## File path: python/mxnet/gluon/rnn/rnn_layer.py ########## @@ -165,8 +207,10 @@ def forward(self, inputs, states): self.i2h_weight[i].shape = (self._gates*self._hidden_size, inputs.shape[2]) self.i2h_weight[i]._finish_deferred_init() if inputs.context.device_type == 'gpu': - return self._forward_gpu(inputs, states) - return self._forward_cpu(inputs, states) + out = self._forward_gpu(inputs, states) # output, state + out = self._forward_cpu(inputs, states) Review comment: ??? ---------------------------------------------------------------- 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