aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Toby Boyd <tobyboyd@google.com>2017-07-27 08:42:47 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-07-27 08:46:49 -0700
commite4a5c5356063d7f7b324a5771fe296bb199b532c (patch)
tree4c7acd183d10855e401d23e8030778d329051786
parent722f6f3611eb4d11e5eb3c8bb6e6df376c659700 (diff)
["Variable", "VariableV2", "VarHandleOp"] is the default for ps_ops=None
PiperOrigin-RevId: 163344629
-rw-r--r--tensorflow/python/training/device_setter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/python/training/device_setter.py b/tensorflow/python/training/device_setter.py
index 02155a98d7..37ab625779 100644
--- a/tensorflow/python/training/device_setter.py
+++ b/tensorflow/python/training/device_setter.py
@@ -168,7 +168,8 @@ def replica_device_setter(ps_tasks=0, ps_device="/job:ps",
than overriding them.
cluster: `ClusterDef` proto or `ClusterSpec`.
ps_ops: List of strings representing `Operation` types that need to be
- placed on `ps` devices. If `None`, defaults to `["Variable"]`.
+ placed on `ps` devices. If `None`, defaults to
+ `["Variable", "VariableV2", "VarHandleOp"]`.
ps_strategy: A callable invoked for every ps `Operation` (i.e. matched by
`ps_ops`), that takes the `Operation` and returns the ps task index to
use. If `None`, defaults to a round-robin strategy across all `ps`