Skip to content

Conversation

@mzgubic
Copy link
Member

@mzgubic mzgubic commented Jun 4, 2021

JuliaDiff/ChainRulesTestUtils.jl#168 (merged, and then reverted) introduced checks that the number of cotangents from the rrule is correct.

Possible fix for JuliaDiff/ChainRulesTestUtils.jl#168 (comment)

Comment on lines 202 to 204
function pinv_pullback(Δy)
return full_pb(Δy)[1:2]
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to remeber if there is a reason we don't do this:

Suggested change
function pinv_pullback(Δy)
return full_pb(Δy)[1:2]
end
pinv_pullback(Δy) = full_pb(Δy)[1:2]

@mzgubic
Copy link
Member Author

mzgubic commented Jun 4, 2021

It looks like inference works on Julia 1.6 and 1.5, but does not work on 1.3 (I didn't check 1.4).

Are we ok with that?

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2021

Codecov Report

Merging #436 (ca7005d) into master (51715d5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #436   +/-   ##
=======================================
  Coverage   98.38%   98.39%           
=======================================
  Files          21       21           
  Lines        1984     1989    +5     
=======================================
+ Hits         1952     1957    +5     
  Misses         32       32           
Impacted Files Coverage Δ
src/rulesets/LinearAlgebra/dense.jl 98.84% <100.00%> (+0.01%) ⬆️
src/rulesets/LinearAlgebra/factorization.jl 97.85% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51715d5...ca7005d. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants