keras-team / keras

Deep Learning for humans
http://keras.io/
Apache License 2.0
61.97k stars 19.46k forks source link

Bidirectional wrapper does not allow specifying initial state for RNN layer #7365

Closed marcoleewow closed 6 years ago

marcoleewow commented 7 years ago

Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.

Thank you!

rnn_size = 10 init = K.variable(value=np.zeros(rnn_size), dtype='float64', name='init_state') gru_1 = GRU(rnn_size)(x, initial_state=init)

runs without error but running

rnn_size = 10 init = K.variable(value=np.zeros([rnn_size, 2]), dtype='float64', name='init_state') gru_2 = Bidirectional(GRU(rnn_size))(x, initial_state=init)

gives TypeError: call() got an unexpected keyword argument 'initial_state'

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

bchu commented 6 years ago

Still running into this issue.