-
Notifications
You must be signed in to change notification settings - Fork 31
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
Very poor performance on simple taylor function #113
Comments
For my own edification, wouldn't Diffractor have to fully inline all pullbacks here and determine that the number of iterations in reverse is bounded by |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Chris' recent SciML video, at this timestamp he showcases a little AD benchmark. Summarizing, differentiating the function:
Shows pretty poor performance in
Diffractor
. I've created a gist that contains a Project, Manifest and test script to showcase the issue. You can increaseN
to get harder and harder problems. Note that I was unable to get Enzyme working onmaster
(perhaps I need to check out themaster
branch) and Diffractor dies with a stack overflow ifN
is too large.For
N=10^4
, we get timings of Enzyme's code running in <1ms, and Diffractor taking more than 300ms. Zygote and ForwardDiff are both well under 10ms.The text was updated successfully, but these errors were encountered: