Closed devmotion closed 11 months ago
Patch coverage: 86.95%
and project coverage change: -1.01%
:warning:
Comparison is base (
00181f8
) 85.12% compared to head (fe86f18
) 84.12%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I solved https://github.com/JuliaDiff/AbstractDifferentiation.jl/pull/93#discussion_r1279975890 by merging and updating #35. With this change, nothing
is not "abused" as co-tangent anymore in AbstractDifferentiation, the code could be simplified quite a bit, and implementations of value_and_pullback_function
do not have to handle nothing
anymore.
@devmotion would it make sense to integrate #100 into the current PR? There I tried to handle the tuple and the single-input cases correctly (to resolve #99), but I'm not confident enough with the package to decide whether I did it right. Also it needs testing but the AbstractDifferentiation.jl test base is still scary to me ^^
I guess it could but I'm hesitant right now because #100 still seems to be quite preliminary and #100 is supposed to be a bugfix that could be released in a non-breaking release whereas this PR is clearly breaking.
Then would you mind maybe reviewing it since it's rather short, and advising me on how to add tests? Since you've already worked on that part of the code, your opinion would be very valuable!
Bump :slightly_smiling_face:
@oxinabox ok for merging this breaking PR?
Please do
I thought part of ColPrac is that developers merge their own PRs after approval? 🤔😛
I was planning to read it this morning! And actually your PRs had been waiting for so long I thought you didn't have merge rights, and I didn't even check 😅 sorry about that
Speaking of, does the repo have the right branch protections to help enforce ColPrac?
Well, they weren't approved (and I also wanted to wait for Mohammeds approval specifically). I merged and released #97 as soon as it was approved yesterday 🙂
I apologize for the confusion. I'm now up to speed on ColPrac ;)
This PR is an update of #36, without merge conflicts and with updated primitives of Tracker and CRC.
A concrete example of why #36 and this PR are useful is #57: This issue is fixed if the primal is taken directly from
rrule
instead of manually re-computing the primal.Fixes #57.
cc @sethaxen
Edit: I also updated and merged #35 in this PR to fix https://github.com/JuliaDiff/AbstractDifferentiation.jl/pull/93#discussion_r1279975890.
Fixes #34.