aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib
diff options
context:
space:
mode:
authorGravatar Sourabh Bajaj <sourabhbajaj@google.com>2018-10-08 12:03:09 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-08 12:08:08 -0700
commit723fd1245ed650ad07e5049faec021f4f0f6d408 (patch)
tree3bcaf32baf4cd2e056d3eb8ff509587172308b8b /tensorflow/contrib
parent1221a8e38a402513560ee71e6982b7cd8b6d901b (diff)
Fix the steps_per_epoch when training on mnist
PiperOrigin-RevId: 216225505
Diffstat (limited to 'tensorflow/contrib')
-rw-r--r--tensorflow/contrib/distribute/python/examples/keras_mnist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/distribute/python/examples/keras_mnist.py b/tensorflow/contrib/distribute/python/examples/keras_mnist.py
index a84ef04196..da7f8c548f 100644
--- a/tensorflow/contrib/distribute/python/examples/keras_mnist.py
+++ b/tensorflow/contrib/distribute/python/examples/keras_mnist.py
@@ -113,7 +113,7 @@ def main(_):
distribute=strategy)
# Train the model with the train dataset.
- model.fit(x=train_ds, epochs=20, steps_per_epoch=310)
+ model.fit(x=train_ds, epochs=20, steps_per_epoch=468)
# Evaluate the model with the eval dataset.
score = model.evaluate(eval_ds, steps=10, verbose=0)