Commit 03c35ec6 authored by Shining Sun's avatar Shining Sun
Browse files

Fixed lint and flag issues

parent 7522e4dc
...@@ -52,7 +52,7 @@ class KerasCifar10BenchmarkTests(object): ...@@ -52,7 +52,7 @@ class KerasCifar10BenchmarkTests(object):
def keras_resnet56_no_dist_strat_1_gpu(self): def keras_resnet56_no_dist_strat_1_gpu(self):
"""Test keras based model with Keras fit but not distribution strategies.""" """Test keras based model with Keras fit but not distribution strategies."""
self._setup() self._setup()
flags.FLAGS.dist_strat_off = True flags.FLAGS.turn_off_distribution_strategy = True
flags.FLAGS.num_gpus = 1 flags.FLAGS.num_gpus = 1
flags.FLAGS.data_dir = DATA_DIR flags.FLAGS.data_dir = DATA_DIR
flags.FLAGS.batch_size = 128 flags.FLAGS.batch_size = 128
......
...@@ -39,7 +39,7 @@ def learning_rate_schedule(current_epoch, ...@@ -39,7 +39,7 @@ def learning_rate_schedule(current_epoch,
current_batch, current_batch,
batches_per_epoch, batches_per_epoch,
batch_size): 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 Scale learning rate at epoch boundaries provided in LR_SCHEDULE by the
provided scaling factor. provided scaling factor.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment