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/05/22 23:55:44 UTC

[GitHub] szha commented on issue #10609: Gluon code fails in the normal mode but succeeds in the hybrid mode.

szha commented on issue #10609: Gluon code fails in the normal mode but succeeds in the hybrid mode.
URL: https://github.com/apache/incubator-mxnet/issues/10609#issuecomment-391177297
 
 
   ```python
   from mxnet import gluon
   import mxnet as mx
   gru = gluon.rnn.GRUCell(5)
   gru.initialize(ctx=mx.cpu(0))
   data =  mx.nd.random.uniform(shape=(2, 3))
   state = [mx.nd.random.uniform(shape=(2, 5))]
   out = gru(data, state)
   ```
   `state` is supposed to be a list. The above code works

----------------------------------------------------------------
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