-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add rules for sqrt(::Diagonal) #509
Conversation
The issue is that the julia> rand_tangent(Diagonal([1,2, 3.0]))
3×3 Diagonal{Float64, Vector{Float64}}:
-2.21 ⋅ ⋅
⋅ 2.4 ⋅
⋅ ⋅ -8.98
julia> rand_tangent(Diagonal([1,2,3]))
NoTangent() |
@mcabbott are you happy to approve the current state? I pushed commits so it's good if you approve as well. We couldn't quite figure out what went wrong with Tom's local setup but everything works when he does a fresh |
LOL, okay, so after pushing the The weird part is that I could only reproduce locally by running the test suite (and not copy pasting the tests) so it looks like this was some kind of interaction with the JuliaInterpretter |
Adding an
rrule
forsqrt(::Diagonal)
, relating to a comment in an issue discussing structural vs naturalTangents