-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpointing in InterpolatingAdjoint seems to be the issue
- Loading branch information
1 parent
b2da78e
commit f078d27
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,8 +266,7 @@ function _setup_reverse_callbacks(cb::Union{ContinuousCallback, DiscreteCallback | |
# if save_positions[2] = false, then the right limit is not saved. Thus, for | ||
# the QuadratureAdjoint we would need to lift y from the left to the right limit. | ||
# However, one also needs to update dgrad later on. | ||
if (sensealg isa QuadratureAdjoint && !cb.save_positions[2]) # || (sensealg isa InterpolatingAdjoint && ischeckpointing(sensealg)) | ||
# lifting for InterpolatingAdjoint is not needed anymore. Callback is already applied. | ||
if (sensealg isa QuadratureAdjoint && !cb.save_positions[2]) || (sensealg isa InterpolatingAdjoint && ischeckpointing(sensealg)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
frankschae
Author
Member
|
||
w(y, y, integrator.p, integrator.t) | ||
end | ||
|
||
|
GaussAdjoint also does checkpointing