aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/distribute/python/examples/simple_estimator_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/distribute/python/examples/simple_estimator_example.py')
-rw-r--r--tensorflow/contrib/distribute/python/examples/simple_estimator_example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/distribute/python/examples/simple_estimator_example.py b/tensorflow/contrib/distribute/python/examples/simple_estimator_example.py
index 5d6e02b4b9..00c25c7a24 100644
--- a/tensorflow/contrib/distribute/python/examples/simple_estimator_example.py
+++ b/tensorflow/contrib/distribute/python/examples/simple_estimator_example.py
@@ -59,7 +59,7 @@ def build_model_fn_optimizer():
def main(_):
distribution = tf.contrib.distribute.MirroredStrategy(
["/device:GPU:0", "/device:GPU:1"])
- config = tf.estimator.RunConfig(distribute=distribution)
+ config = tf.estimator.RunConfig(train_distribute=distribution)
def input_fn():
features = tf.data.Dataset.from_tensors([[1.]]).repeat(10)