-
Notifications
You must be signed in to change notification settings - Fork 146
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
Erratic errors in typed Hessians #29
Comments
Good catch! The I don't have time tonight to check out for sure that it does fix the above, but I'll check tomorrow and report back. |
That sounds fine, thanks for the quick response. I tried a handful of other trig functions and did not observe the problem, and I can implement atan with exp by hand in the meantime, so no rush on my account. Thanks! |
I ran your examples, and I can say with more certainty that this is fixed by #27 - I'm seeing a The code I used is here; it's basically the code example you gave, but modified to use the new API exposed in #27. Unless you find anything else, I think this issue can be closed once #27 lands. |
This now fixed on |
ForwardDiff.forwarddiff_hessian
intermittently returns hessians that look like they are unset memory - - they are completely wrong. Since this happens intermittently and only in certain settings I haven't been able to narrow down exactly what the problem is, but I have a couple relatively minimal examples that reproduce the problem reliably on my computer.I happen to have discovered it when using
atan
. I haven't been able to reproduce it for simple polynomials and haven't systematically tried other functions yet. Here's the simplest example:I don't know if it's a red herring, but happened to discover it when indexing into the argument using a closure. The following, more complicated example, fails much more often:
Please let me know if you have any ideas or want more details.
The text was updated successfully, but these errors were encountered: