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

onnx: implement LSTM op #2268

Merged
merged 1 commit into from
Aug 19, 2024
Merged

onnx: implement LSTM op #2268

merged 1 commit into from
Aug 19, 2024

Conversation

shua
Copy link
Contributor

@shua shua commented Jun 15, 2024

I'm not sure if, at this point, the simple_eval is the right place to put all this code. It's the thing I implemented, but I could use some direction from code maintainer where this makes sense to add to the codebase.

It was a bit trickier to test this as the docs don't really give inputs/outputs, their tests simply match against an alternative implementation of LSTM. So I've done basically the same thing, where I checked that the implementation here matches the output of pytorch's LSTM node.

@shua
Copy link
Contributor Author

shua commented Jun 22, 2024

ah, I just found the LSTM implementation in candle-nn, don't know how I missed it before, I think I'll try to use that instead of the one here.

@shua shua mentioned this pull request Jul 7, 2024
9 tasks
use candle-nn LSTM
@LaurentMazare LaurentMazare merged commit 31a1075 into huggingface:main Aug 19, 2024
@LaurentMazare
Copy link
Collaborator

Thanks and sorry for the delay.

@shua shua deleted the lstm branch August 19, 2024 18:20
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

Successfully merging this pull request may close these issues.

2 participants