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
c4c49d1a
Unverified
Commit
c4c49d1a
authored
Nov 01, 2018
by
Jon Shlens
Committed by
GitHub
Nov 01, 2018
Browse files
Merge pull request #5658 from cheerss/master
update the calculation of num_batches_per_epoch
parents
82e783e3
c8032908
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/image/cifar10/cifar10_multi_gpu_train.py
tutorials/image/cifar10/cifar10_multi_gpu_train.py
+1
-1
No files found.
tutorials/image/cifar10/cifar10_multi_gpu_train.py
View file @
c4c49d1a
...
...
@@ -147,7 +147,7 @@ def train():
# Calculate the learning rate schedule.
num_batches_per_epoch
=
(
cifar10
.
NUM_EXAMPLES_PER_EPOCH_FOR_TRAIN
/
FLAGS
.
batch_size
)
FLAGS
.
batch_size
/
FLAGS
.
num_gpus
)
decay_steps
=
int
(
num_batches_per_epoch
*
cifar10
.
NUM_EPOCHS_PER_DECAY
)
# Decay the learning rate exponentially based on the number of steps.
...
...
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