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
746a927c
Commit
746a927c
authored
Nov 30, 2018
by
Amit Patankar
Browse files
Setting the initial learning rate.
parent
1cd1999e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
official/resnet/keras/keras_cifar_main.py
official/resnet/keras/keras_cifar_main.py
+1
-0
No files found.
official/resnet/keras/keras_cifar_main.py
View file @
746a927c
...
...
@@ -116,6 +116,7 @@ def learning_rate_schedule(current_epoch, current_batch, batches_per_epoch):
# return learning_rate
epoch
=
current_epoch
+
float
(
current_batch
)
/
batches_per_epoch
learning_rate
=
BASE_LEARNING_RATE
for
mult
,
start_epoch
in
LR_SCHEDULE
:
if
epoch
>=
start_epoch
:
learning_rate
=
BASE_LEARNING_RATE
*
mult
...
...
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