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
ee760015
Commit
ee760015
authored
May 26, 2020
by
Maxim Neumann
Committed by
A. Unique TensorFlower
May 26, 2020
Browse files
Add learning_rate to the summary.
PiperOrigin-RevId: 313148142
parent
38800db3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
official/nlp/bert/model_training_utils.py
official/nlp/bert/model_training_utils.py
+5
-0
No files found.
official/nlp/bert/model_training_utils.py
View file @
ee760015
...
...
@@ -488,6 +488,11 @@ def run_customized_training_loop(
summary_writer
=
tf
.
summary
.
create_noop_writer
()
with
summary_writer
.
as_default
():
if
callable
(
optimizer
.
learning_rate
):
tf
.
summary
.
scalar
(
'learning_rate'
,
optimizer
.
learning_rate
(
current_step
),
step
=
current_step
)
tf
.
summary
.
scalar
(
train_loss_metric
.
name
,
train_loss
,
step
=
current_step
)
for
metric
in
train_metrics
+
model
.
metrics
:
...
...
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