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
03c35ec6
"git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "2acafdafd91d4ad3df7079d63fc51f3f3c00813a"
Commit
03c35ec6
authored
Dec 27, 2018
by
Shining Sun
Browse files
Fixed lint and flag issues
parent
7522e4dc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
official/resnet/keras/keras_cifar_benchmark.py
official/resnet/keras/keras_cifar_benchmark.py
+1
-1
official/resnet/keras/keras_cifar_main.py
official/resnet/keras/keras_cifar_main.py
+1
-1
official/resnet/keras/resnet_cifar_model.py
official/resnet/keras/resnet_cifar_model.py
+4
-4
official/utils/misc/distribution_utils.py
official/utils/misc/distribution_utils.py
+1
-1
No files found.
official/resnet/keras/keras_cifar_benchmark.py
View file @
03c35ec6
...
...
@@ -52,7 +52,7 @@ class KerasCifar10BenchmarkTests(object):
def
keras_resnet56_no_dist_strat_1_gpu
(
self
):
"""Test keras based model with Keras fit but not distribution strategies."""
self
.
_setup
()
flags
.
FLAGS
.
dist
_strat
_off
=
True
flags
.
FLAGS
.
turn_off_distribution
_strat
egy
=
True
flags
.
FLAGS
.
num_gpus
=
1
flags
.
FLAGS
.
data_dir
=
DATA_DIR
flags
.
FLAGS
.
batch_size
=
128
...
...
official/resnet/keras/keras_cifar_main.py
View file @
03c35ec6
...
...
@@ -39,7 +39,7 @@ def learning_rate_schedule(current_epoch,
current_batch
,
batches_per_epoch
,
batch_size
):
"""Handles linear scaling rule
, gradual warmup,
and LR decay.
"""Handles linear scaling rule and LR decay.
Scale learning rate at epoch boundaries provided in LR_SCHEDULE by the
provided scaling factor.
...
...
official/resnet/keras/resnet_cifar_model.py
View file @
03c35ec6
...
...
@@ -180,12 +180,12 @@ def resnet56(classes=100, training=None):
"""Instantiates the ResNet56 architecture.
Arguments:
classes: optional number of classes to classify images into
training: Only used if training keras model with Estimator. In other
scenarios it is handled automatically.
classes: optional number of classes to classify images into
training: Only used if training keras model with Estimator. In other
scenarios it is handled automatically.
Returns:
A Keras model instance.
A Keras model instance.
"""
# Determine proper input shape
if
backend
.
image_data_format
()
==
'channels_first'
:
...
...
official/utils/misc/distribution_utils.py
View file @
03c35ec6
...
...
@@ -32,7 +32,7 @@ def get_distribution_strategy(num_gpus,
See tf.contrib.distribute.AllReduceCrossDeviceOps for available
algorithms. If None, DistributionStrategy will choose based on device
topology.
turn_off_distribution_strategy: when set to True, do not use any
turn_off_distribution_strategy: when set to True, do not use any
distribution strategy. Note that when it is True, and num_gpus is
larger than 1, it will raise a ValueError.
...
...
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