You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/06/11 08:05:21 UTC

[GitHub] gautam1858 closed pull request #11166: Update rnn_cell.py

gautam1858 closed pull request #11166: Update rnn_cell.py
URL: https://github.com/apache/incubator-mxnet/pull/11166
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/python/mxnet/rnn/rnn_cell.py b/python/mxnet/rnn/rnn_cell.py
index 3301102ba90..c142261e1d7 100644
--- a/python/mxnet/rnn/rnn_cell.py
+++ b/python/mxnet/rnn/rnn_cell.py
@@ -39,11 +39,13 @@ def _cells_begin_state(cells, **kwargs):
     return sum([c.begin_state(**kwargs) for c in cells], [])
 
 def _cells_unpack_weights(cells, args):
+    cells = [cells]
     for cell in cells:
         args = cell.unpack_weights(args)
     return args
 
 def _cells_pack_weights(cells, args):
+    cells = [cells]
     for cell in cells:
         args = cell.pack_weights(args)
     return args


 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services