-
-
Notifications
You must be signed in to change notification settings - Fork 611
Fixes to Recurrent models for informative type mismatch error & output Vector for Vector input #1521
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
Conversation
Tests error on OneHotInput. I missed that case, which brakes the design of the informative error on inconsistent eltype between input and state. Would dropping the parametric type in Cells' arguments be acceptable? That would revert to current case where the input/state eltype mismatch results in a more obscure |
Why not just let |
I think that's a good suggestion :) My understanding is that Union are to be avoided if possible, but in this case, it seems the best course of action. Tests are back to green, thanks! |
looks good! it only needs a |
We are also considering using cudnn instead, it's unclear whether we have actually seen a performance advantage. |
whether we do it through cudnn or not, we can add support for sequences batched in 3d arrays at any point in addition to the current interface. I think @jeremiedb already mentioned that a few months ago |
Given how other frameworks have to bend over backwards and add a bunch of nasty conditionals/documentation caveats to integrate with cuDNN RNNs, I'd say we should only consider adding it if we decide to support 3d sequences. |
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.
I think we want to avoid unions for struct fields, but it should be fine for use in dispatch like this.
Co-authored-by: Kyle Daruwalla <[email protected]>
Co-authored-by: Kyle Daruwalla <[email protected]>
@CarloLucibello Tests on type mismatch and vector vs matrix input have been added. |
bors r+ |
Build succeeded: |
Minor fix to Recurrent to return
Vector
withVector
input, returns an indicative error relative to type incompatibility where eltype of input doesn't match with eltype of state, as well as some typos in associated docs.As discussed in #1483.