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
Added support for LSTM and BatchNorm #24
Conversation
lib/flux.js
Outdated
const add = (a, b) => a + b; | ||
const sub = (a, b) => a - b; | ||
const mul = (a, b) => a * b; | ||
const div = (a, b) => a / b; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to just emit these directly?
Looks good to me, though I guess it needs rebasing over the NCHW changes. |
It would also be good to start having some basic tests for the generated code here. |
Looks like this has conflicts from the tensorflow.js update |
👍 Thanks! |
I'm late to the party, but I'm still seeing |
Can you please post the code? I can't seem to reproduce the error with the char-rnn model. |
Here's a quick but not very minimal example:
I get this error no matter what I call |
That error seems to come up on commits before 4afb9e7. Can you check the git logs and see if you have the latest version of master? |
Ugh, my mistake -- thanks. On actual master I am still getting the following:
|
I'm not sure why this is happening, I can't reproduce it on my end. Now that we have tests for the primitives, can you check out which ones aren't working on yours? |
I was using the ASTInterpreter2 master which was also causing Flux tests to fail. I freed it back to 0.1.1, and while Flux tests now pass, FluxJS tests (and exporting models) fails with the following:
What ASTInterpreter2 are you on? |
I'm on master as well. You might want to try out this branch of Vinyl to get a stacktrace of the error. |
|
StagedArray uses
val
field instead ofdims
.