Commit cfdbdf10 authored by Neal Wu's avatar Neal Wu Committed by GitHub
Browse files

Merge pull request #1530 from xiangjinwu/patch-1

To pass test, add VariableV2 in _PSDeviceChooser
parents 2fa4bb61 01db54e5
......@@ -663,7 +663,7 @@ class DeploymentConfig(object):
if op.device:
return op.device
node_def = op if isinstance(op, tf.NodeDef) else op.node_def
if node_def.op == 'Variable':
if node_def.op.startswith('Variable'):
t = self._task
self._task = (self._task + 1) % self._tasks
d = '%s/task:%d' % (self._device, t)
......
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