-
Notifications
You must be signed in to change notification settings - Fork 69
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
Widen cholesky
rule to Hermitian
and Symmetric
matrices
#1273
Conversation
src/internal_rules.jl
Outdated
A::Annotation{AT}; | ||
kwargs...) where {AT <: Array} | ||
A::Annotation{<:Union{Matrix,LinearAlgebra.RealHermSym{<:Real,<:Matrix}}}; | ||
kwargs...) | ||
|
||
if !(RT <: Const) && !isa(A, Const) | ||
dAs = EnzymeRules.width(config) == 1 ? (A.dval,) : A.dval | ||
dfacts = EnzymeRules.width(config) == 1 ? (dfact,) : dfact | ||
|
||
for (dA, dfact) in zip(dAs, dfacts) | ||
if dA !== dfact.factors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering, should this check be changed as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah the check should make sure we're not adding to itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix that check otherwise lgtm
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1273 +/- ##
==========================================
+ Coverage 75.14% 75.21% +0.06%
==========================================
Files 35 35
Lines 10393 10394 +1
==========================================
+ Hits 7810 7818 +8
+ Misses 2583 2576 -7 ☔ View full report in Codecov by Sentry. |
I updated the check 🙂 |
The 1.10 failure is new/real, but not caused by this PR -- but rather only caused [and first noticed] by a forward mode test added here. The fix requires a jll bump which is currently blocked by: JuliaPackaging/Yggdrasil#8017. I've said on that thread that for now we should just disable Windows for LLVM16+ as hopefully one of the libLLVM_jll maintainers can fix windows on 16. |
Seems to fix #1272:
However, the big caveat is that I don't know if this is the correct approach.