-
Notifications
You must be signed in to change notification settings - Fork 13
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
Efficient Kronecker Gradients in Zygote #11
Comments
I will look at it Friday during the hackathon! |
Can we discuss irl somewhere this week? Have some questions. Btw, |
Yes. I'm around tomorrow and will also be at the hackathon on Friday working on Zygote stuff. The |
The reshape/broadcasting implementation doesn't use any of the nice structure from the module. What about the following: vec(A) = reshape(A, :)
Zygote.@adjoint kronecker(A, B) = kronecker(A,B), dy-> (
dy.A .* (vec(dy.B)' * vec(B)), dy.B .* (vec(A)' * vec(dy.A))) |
Can you review the implementation of the gradients for
kron
in Zygote and Tracker? I directly ported these from Tensorflow.Specifically could you comment on the implementation, and whether it could benefit from your package?
The text was updated successfully, but these errors were encountered: