Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
0f7ae60f
Verified
Commit
0f7ae60f
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
fix update_gradient_tracker_till_time!
parent
46674e92
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pathways.jl
+2
-2
2 additions, 2 deletions
src/pathways.jl
with
2 additions
and
2 deletions
src/pathways.jl
+
2
−
2
View file @
0f7ae60f
...
...
@@ -341,7 +341,7 @@ The `bmat` is updated with the outer produce of `qvec` with itself multiplied by
When called with the first signature the tracker will be created from scratch if a tracker with that `key` does not exist.
"""
function
update_gradient_tracker_till_time!
(
walker
::
PathwayWalker
,
key
::
Tuple
,
new_time
::
VariableType
)
if
key
in
keys
(
walker
.
gradient_trackers
)
if
!
(
key
in
keys
(
walker
.
gradient_trackers
)
)
walker
.
gradient_trackers
[
key
]
=
GradientTracker
()
end
update_gradient_tracker_till_time!
(
walker
.
gradient_trackers
[
key
],
new_time
)
...
...
@@ -425,7 +425,7 @@ function update_walker_gradient!(gradient::GradientBlock, walker::PathwayWalker,
# update gradient tracker till start of gradient
key
=
(
gradient
.
scale
,
gradient
.
rotate
)
update_gradient_tracker_till_time!
(
gradient
,
key
,
gradient_start_time
)
update_gradient_tracker_till_time!
(
walker
,
key
,
gradient_start_time
)
# update qvec/bmat during gradient
tracker
=
walker
.
gradient_trackers
[
key
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment