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

Drop-in replacement for nn.LSTM? #9

Open
hrpan opened this issue Jun 7, 2024 · 1 comment
Open

Drop-in replacement for nn.LSTM? #9

hrpan opened this issue Jun 7, 2024 · 1 comment

Comments

@hrpan
Copy link

hrpan commented Jun 7, 2024

Firstly, thanks for releasing the code!

Currently, it appears that the forward method only returns the output state but not the recurrent state, and the only way to get the recurrent state is to use the step method for each time-step, which presumably is less efficient.

So I was wondering if there is a drop-in replacement for nn.LSTM, which returns both the output state and the last recurrent state?

@1rsh
Copy link

1rsh commented Jun 7, 2024

Looking for the same.

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

2 participants