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
ea3e2f7b
Commit
ea3e2f7b
authored
Apr 01, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Apr 01, 2020
Browse files
Disable LR reporting due to reporting bug.
PiperOrigin-RevId: 304315213
parent
6d16ae2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
official/vision/image_classification/callbacks.py
official/vision/image_classification/callbacks.py
+3
-2
No files found.
official/vision/image_classification/callbacks.py
View file @
ea3e2f7b
...
@@ -128,8 +128,9 @@ class CustomTensorBoard(tf.keras.callbacks.TensorBoard):
...
@@ -128,8 +128,9 @@ class CustomTensorBoard(tf.keras.callbacks.TensorBoard):
def
_calculate_metrics
(
self
)
->
MutableMapping
[
str
,
Any
]:
def
_calculate_metrics
(
self
)
->
MutableMapping
[
str
,
Any
]:
logs
=
{}
logs
=
{}
if
self
.
_track_lr
:
# TODO(b/149030439): disable LR reporting.
logs
[
'learning_rate'
]
=
self
.
_calculate_lr
()
# if self._track_lr:
# logs['learning_rate'] = self._calculate_lr()
return
logs
return
logs
def
_calculate_lr
(
self
)
->
int
:
def
_calculate_lr
(
self
)
->
int
:
...
...
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