Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Nov 29, 2020 · 0 comments
Open

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

ghost opened this issue Nov 29, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2020

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

It is sad that many of the lightweight neural network libs are no longer maintained. I have looked for the relevant libs, but none of them provide this feature. The encoder and decoder models only seem to find example code on extremely large libs like tensorflow or keras.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants