Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
fce80137
Commit
fce80137
authored
Dec 01, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Dec 01, 2020
Browse files
Change logging about the best checkpoint export
PiperOrigin-RevId: 345054031
parent
d07c870f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
official/core/train_lib.py
official/core/train_lib.py
+4
-3
No files found.
official/core/train_lib.py
View file @
fce80137
...
@@ -40,12 +40,13 @@ def maybe_create_best_ckpt_exporter(params: config_definitions.ExperimentConfig,
...
@@ -40,12 +40,13 @@ def maybe_create_best_ckpt_exporter(params: config_definitions.ExperimentConfig,
best_ckpt_dir
=
os
.
path
.
join
(
data_dir
,
export_subdir
)
best_ckpt_dir
=
os
.
path
.
join
(
data_dir
,
export_subdir
)
best_ckpt_exporter
=
BestCheckpointExporter
(
best_ckpt_exporter
=
BestCheckpointExporter
(
best_ckpt_dir
,
metric_name
,
metric_comp
)
best_ckpt_dir
,
metric_name
,
metric_comp
)
else
:
best_ckpt_exporter
=
None
logging
.
info
(
logging
.
info
(
'
Not exporting
the best checkpoint. '
'
Created
the best checkpoint
exporter
. '
'data_dir: %s, export_subdir: %s, metric_name: %s'
,
data_dir
,
'data_dir: %s, export_subdir: %s, metric_name: %s'
,
data_dir
,
export_subdir
,
metric_name
)
export_subdir
,
metric_name
)
else
:
best_ckpt_exporter
=
None
return
best_ckpt_exporter
return
best_ckpt_exporter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment