Conversation
Codecov Report❌ Patch coverage is
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Your PR no longer requires formatting changes. Thank you for your contribution! |
4408849 to
ec8354b
Compare
7478c90 to
9091c56
Compare
6ab2c5a to
7e76c77
Compare
|
OK, I think this is ready for review! |
|
1.12 failures really seem unrelated/Enzyme internal, not sure what to do about it other than disable the Enzyme tests on 1.12 until it becomes more stable there. |
f478efa to
830c82c
Compare
|
OK, for unknown and likely extremely brain melting reasons, adding a |
|
Culprit seems to be inlining for |
d4de7b3 to
718ddda
Compare
|
OK, made the caching of arg and ret a lot more consistent |
|
The end is near, I think. It is the first time I get all the way to the bottom of extension file 😄 . One big question I have is that I still don't fully understand why we pass https://enzyme.mit.edu/julia/stable/generated/custom_rule/#Defining-a-reverse-mode-rule I didn't fully understand your previous response. |
|
OK, so I think in the manual the only case in which we can use |
|
If the return is e.g. a |
|
Test fails are in |
|
OK, I think we must always copy |
| dret = (Diagonal(zero(diagview(DV′[1]))), zero(DV′[2])) | ||
| shadow = EnzymeRules.needs_shadow(config) ? dret : nothing | ||
| return EnzymeRules.AugmentedReturn(primal, shadow, (cache_DV, dret, ind)) |
There was a problem hiding this comment.
| dret = (Diagonal(zero(diagview(DV′[1]))), zero(DV′[2])) | |
| shadow = EnzymeRules.needs_shadow(config) ? dret : nothing | |
| return EnzymeRules.AugmentedReturn(primal, shadow, (cache_DV, dret, ind)) | |
| dret = if EnzymeRules.needs_shadow(config) | |
| (Diagonal(zero(diagview(DV′[1]))), zero(DV′[2])) | |
| else | |
| nothing | |
| end | |
| return EnzymeRules.AugmentedReturn(primal, dret, (cache_DV, dret, ind)) |
Jutho
left a comment
There was a problem hiding this comment.
While we should probably wait for the tests, I will approve prematurely 😄
No description provided.