-
Notifications
You must be signed in to change notification settings - Fork 35
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
Overhead with nested overdub #85
Comments
I think the problem here might just be a bug in the InferenceResult cache - it seems like inference knows the answer here, it's looks like it's just not using that info properly, resulting in Simpler MWE:
If you
If you then peak into inference's cached result for that by doing one more descent, however, you see that the invoke is actually well-inferred in the cache:
Dropping that @vchuravy is my model of what Cthulhu.jl doing correct - does Cthulhu look at the CodeInfo/InferenceResult that the compiler actually hits in the cache, or is it doing something weirder that would cause my above analysis to be misinformed? EDIT: okay it's calling |
Okay I think I know how to fix this; just need to leave a note for myself: I need to propagate the primal |
Note that the OP here was actually fixed by #92, which AFAICT is all that was needed for Cassette to fully avoid inference recursion issues. Extending by one more overdub for this example ends up hitting JuliaLang/julia#28003, though (see the |
x-ref #73
The text was updated successfully, but these errors were encountered: