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/02/16 19:10:30 UTC
[GitHub] ArmageddonKnight opened a new issue #9811: How to reinitialize the begin_state of an RNN
ArmageddonKnight opened a new issue #9811: How to reinitialize the begin_state of an RNN
URL: https://github.com/apache/incubator-mxnet/issues/9811
I now have an RNN, of which the initial hidden states are initialized to all zeros:
```
rnn = mx.rnn.SequentialRNNCell()
for i in range(args.num_layers):
rnn.add(mx.rnn.LSTMCell(num_hidden=args.num_hidden, prefix='lstm_l%d_'%i))
def sym_gen(seq_len):
...
outputs, _ = rnn.unroll(length=seq_len, inputs=embed, merge_outputs=True)
```
I am hoping to reinitialize the begin state of batch **N + 1** to be the final state of batch **N**. How can I possibly achieve this? Thank you.
----------------------------------------------------------------
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