Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Merge requests
!15
Merge develop to master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Merge develop to master
develop
into
master
Overview
0
Commits
5
Pipelines
0
Changes
13
Merged
Mateusz Klimaszewski
requested to merge
develop
into
master
4 years ago
Overview
0
Commits
5
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
c0835180
Prev
Next
Show latest version
3 files
+
6
−
5
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
c0835180
Fix training loops and metrics.
· c0835180
Mateusz Klimaszewski
authored
4 years ago
combo/training/checkpointer.py
+
1
−
0
Options
@@ -16,6 +16,7 @@ class FinishingTrainingCheckpointer(training.Checkpointer):
epoch
:
Union
[
int
,
str
],
trainer
:
"
allen_trainer.Trainer
"
,
is_best_so_far
:
bool
=
False
,
save_model_only
:
bool
=
False
,
)
->
None
:
if
trainer
.
_learning_rate_scheduler
.
decreases
<=
1
or
epoch
==
trainer
.
_num_epochs
-
1
:
super
().
save_checkpoint
(
epoch
,
trainer
,
is_best_so_far
)