Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #325 +/- ##
==========================================
- Coverage 98.57% 5.06% -93.51%
==========================================
Files 107 93 -14
Lines 4620 4465 -155
==========================================
- Hits 4554 226 -4328
- Misses 66 4239 +4173
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Hm that seems to imply that you're not using Reactant.compile |
|
You can look at the code, but I really think I am |
|
I get you, but also the error log clearly indicates it wasn't. There should be some sort of casette compile in the logs if so. |
|
Are you trying to autodiff a reactant compiled function by chance? Reactant needs to be on the outside of all the gradient calls/etc? |
Yes, that's what the code above shows. I'm doing DI.gradient(f_compiled, backend, x_reactant)
I assume the question mark at the end is unintended? And I should be doing the following? compile(x -> DI.gradient(f, backend, x_reactant)) |
|
yeah sorry ignore the question mark. Indeed reactant needs to compile the outermost function [e.g. compile the gradient call] |
|
Still getting a world age error, even though now I'm compiling the gradient closure |
|
@gdalle hm the log still thinks that you're trying to pass a compiled fn into autodiff rather than the other way round: |
|
The entire code is here (gradient is automatically preceded by preparation) and I really don't see where I'm doing that: |
|
@gdalle okay I just released a reactant bump which fixes this |
|
New kind of error: |
|
huh weird, open an issue with an MWE? |
|
Tests are passing locally 🥳 now onto implementing more operators |
First trial for #265
@wsmoses I run into a weird world age error in the test, any clue?