Use NoTangent() instead of nothing to designate non-differentiability#203
Use NoTangent() instead of nothing to designate non-differentiability#203
NoTangent() instead of nothing to designate non-differentiability#203Conversation
AlexRobson
left a comment
There was a problem hiding this comment.
This is changing the length of the return - i.e. from (nothing, nothing...) to a single NoTangent(). Is this intended?
I'm surprised no tests had to change to handle this.
I think that this means that here given that the output of fd_cotangents) will only be length one, the zip will only loop over the first argument.
|
well caught, that's a mistake |
Codecov Report
@@ Coverage Diff @@
## master #203 +/- ##
=======================================
Coverage 90.94% 90.94%
=======================================
Files 11 11
Lines 287 287
=======================================
Hits 261 261
Misses 26 26
Continue to review full report at Codecov.
|
willtebbutt
left a comment
There was a problem hiding this comment.
I have no objection to this going in, but like @AlexRobson I'm a bit surprised that there's no changes needed to the tests. Do we just not have great coverage in this package?
|
I think the reason is that this is an implementation detail. It is not visible anywhere outside of the package. Annoyingly it didn't catch the length issue. |
Needed so that JuliaDiff/FiniteDifferences.jl#189 does not break ChainRules tests