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
d2937946
Commit
d2937946
authored
Dec 23, 2018
by
Toby Boyd
Browse files
fixed import lint and single docstring complaint.
parent
122bb012
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
official/resnet/keras/keras_common.py
official/resnet/keras/keras_common.py
+4
-2
No files found.
official/resnet/keras/keras_common.py
View file @
d2937946
...
...
@@ -20,11 +20,12 @@ from __future__ import print_function
import
time
from
absl
import
flags
from
absl
import
flags
# pylint: disable=g-bad-import-order
import
numpy
as
np
# pylint: disable=g-bad-import-order
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
tensorflow.python.keras.optimizer_v2
import
gradient_descent
as
gradient_descent_v2
from
tensorflow.python.keras.optimizer_v2
import
(
gradient_descent
as
gradient_descent_v2
)
FLAGS
=
flags
.
FLAGS
...
...
@@ -91,6 +92,7 @@ class LearningRateBatchScheduler(tf.keras.callbacks.Callback):
self
.
epochs
+=
1
def
on_batch_begin
(
self
,
batch
,
logs
=
None
):
"""Executes before step begins."""
lr
=
self
.
schedule
(
self
.
epochs
,
batch
,
self
.
batches_per_epoch
,
...
...
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