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
52372782
Commit
52372782
authored
Aug 08, 2019
by
Nimit Nigania
Browse files
add option to print loss
parent
ad41c647
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/utils/misc/keras_utils.py
official/utils/misc/keras_utils.py
+3
-0
No files found.
official/utils/misc/keras_utils.py
View file @
52372782
...
...
@@ -83,6 +83,9 @@ class TimeHistory(tf.keras.callbacks.Callback):
"BenchmarkMetric: {'global step':%d, 'time_taken': %f,"
"'examples_per_second': %f}"
%
(
self
.
global_steps
,
elapsed_time
,
examples_per_second
))
tf
.
compat
.
v1
.
logging
.
info
(
"Loss: %f"
%
(
logs
.
get
(
'loss'
)))
self
.
start_time
=
timestamp
def
on_epoch_end
(
self
,
epoch
,
logs
=
None
):
...
...
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