cazala / synaptic

architecture-free neural network library for node.js and the browser
http://caza.la/synaptic
Other
6.92k stars 666 forks source link

Can I get the H and C states of the LSTM? #349

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi. I wish to build encoder and decoder model, but I don't know where the H and C states of the encoder are, and how to use them as the initial state of the decoder?

Pseudocode:
[outputs, stateH, stateC] = LSTM()
[outputs] = LSTM(initial_state=[stateH, stateC])

Thank you