-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Operations on StaticArrays give runtime BoundsError #860
Comments
Likely related to chain rules rules being too conservative |
I did a bit of sleuthing, the above works for Zygote v0.5.15 , but fails for v0.5.16 . Specifically, #847 likely triggered this and I ran into it because I needed |
Can you revert that pr and test? If it works we can figure out supporting svectors in Zygote directly like we used to. |
According to the changelog, that PR was the only change between 0.5.15 and 0.5.16. Another approach would be widening the types allowed in ChainRulesCore (to e.g. |
The ChainRules pullback looks like it would work fine, I'm not sure why it was written for StridedArray. (There is a long debate somewhere... but this case seems pretty clear.) |
Zygote should decompose the operation on the StaticArray and find on the inside something that it can work with. |
Possibly related to #837
This is on Julia 1.4, Zygote 0.6.0, and StaticArrays 0.12.5
Beginning of stacktrace:
The text was updated successfully, but these errors were encountered: