Open ExpandingMan opened 2 days ago
hm did you start your split tests from your old PR... I say this because this is one of the abi's that changed and shouldn't happen if you just copy and paste from scratch.
It makes me a bit worried that the new PR to split tests misses some changes to tests or new tests (which is why I suggested to copy and paste from scratch and not rebase)
No, I started it entirely from latest main
, I wound up not even touching my old branch. This is definitely on latest main.
In this example, all calls to
f_ip
will fail becausedot
is not defined (one should dousing LinearAlgebra
to fix this). The error message on callingf_hvp!
however is quite puzzlingIt's probably fair to say that anyone not intimately familiar with enzyme internals might have a hard time figuring out why this failed from the stack trace and error message.
Note that if one calls only
f_gradient_deferred!
one getsThis seems a lot more reasonable because it's pretty clear that it can't infer the return type of
dot
so Enzyme thinks the call toautodiff_deferred
is invalid for this code, but if there's anyway of showing the user there is anUndefVarError
here, that would surely be useful.