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

Change order of post_callback and gradient norm computation #306

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

sblauth
Copy link
Owner

@sblauth sblauth commented Sep 13, 2023

Now, post_callback will be called immediately after computing the gradient and the norm will be computed afterwards. This ensures correct norm computation, when the gradient is modified by the post_callback

Now, post_callback will be called immediately after computing the
gradient and the norm will be computed afterwards. This ensures
correct norm computation, when the gradient is modified by the
post_callback
@sblauth sblauth added the bug Something isn't working label Sep 13, 2023
@sblauth sblauth self-assigned this Sep 13, 2023
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #306 (4d5ef90) into hotfix/2.0.11 (b6292d7) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##           hotfix/2.0.11     #306      +/-   ##
=================================================
- Coverage          92.66%   92.66%   -0.00%     
=================================================
  Files                 83       83              
  Lines               6441     6440       -1     
=================================================
- Hits                5968     5967       -1     
  Misses               473      473              
Files Changed Coverage Δ
cashocs/_pde_problems/shape_gradient_problem.py 93.83% <100.00%> (-0.08%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sblauth sblauth merged commit 8f36a06 into hotfix/2.0.11 Sep 13, 2023
22 of 23 checks passed
@sblauth sblauth deleted the fix/change_order branch September 13, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant