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
22f10c60
Commit
22f10c60
authored
Apr 22, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Apr 22, 2020
Browse files
Add model metrics to the training summary.
PiperOrigin-RevId: 307914609
parent
2d05fc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
official/nlp/bert/model_training_utils.py
official/nlp/bert/model_training_utils.py
+2
-0
No files found.
official/nlp/bert/model_training_utils.py
View file @
22f10c60
...
...
@@ -491,6 +491,8 @@ def run_customized_training_loop(
'total_training_steps'
:
total_training_steps
,
'train_loss'
:
_float_metric_value
(
train_loss_metric
),
}
for
metric
in
model
.
metrics
:
training_summary
[
metric
.
name
]
=
_float_metric_value
(
metric
)
if
eval_metrics
:
# TODO(hongkuny): Cleans up summary reporting in text.
training_summary
[
'last_train_metrics'
]
=
_float_metric_value
(
...
...
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