Skip to content
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

Some recursion tuning to allow more eager inference. #568

Merged
merged 4 commits into from
Nov 23, 2023

Conversation

N5N3
Copy link
Contributor

@N5N3 N5N3 commented Nov 23, 2023

Before julia 1.11, indirect recursion might cause unwanted type widening and leading to bad inference.
itp(...), gradient(itp, ...), hessian(itp, ...) would therefore become unstable if itp has some NoInterp dim.
This PR fix it, MWE has been added to Test.

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (43fe00f) 87.87% compared to head (21f8b76) 87.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #568      +/-   ##
==========================================
+ Coverage   87.87%   87.93%   +0.06%     
==========================================
  Files          28       28              
  Lines        1880     1890      +10     
==========================================
+ Hits         1652     1662      +10     
  Misses        228      228              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mkitti
Copy link
Collaborator

mkitti commented Nov 23, 2023

Thanks

@mkitti mkitti merged commit b47eddc into JuliaMath:master Nov 23, 2023
13 checks passed
@N5N3 N5N3 deleted the cbfix branch November 23, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants