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

Avoid unnecessary evaluation of chi #38

Merged
merged 1 commit into from
Jan 20, 2024
Merged

Avoid unnecessary evaluation of chi #38

merged 1 commit into from
Jan 20, 2024

Conversation

goerz
Copy link
Member

@goerz goerz commented Jan 19, 2024

If an explicit chi is given, do not evaluate one with AD. Also, do not reconstruct a chi! routine in every Krotov iteration. Moving make_chi out of the iteration loop potentially avoids compilation overhead in each iteration.

If an explicit `chi` is given, do not evaluate one with AD. Also, do not
reconstruct a chi! routine in every Krotov iteration. Moving `make_chi`
out of the iteration loop potentially avoids compilation overhead in
each iteration.
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e62314d) 86.6% compared to head (ddc4298) 86.3%.

Files Patch % Lines
src/optimize.jl 83.4% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master     #38     +/-   ##
========================================
- Coverage    86.6%   86.3%   -0.2%     
========================================
  Files           4       4             
  Lines         245     248      +3     
========================================
+ Hits          212     214      +2     
- Misses         33      34      +1     

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

@goerz goerz merged commit ddc4298 into master Jan 20, 2024
5 checks passed
@goerz goerz deleted the avoid-chi-evaluation branch January 20, 2024 01:38
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.

1 participant