Skip to content

Commit

Permalink
To pass test, add VariableV2 in _PSDeviceChooser
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangjinwu authored Jun 5, 2017
1 parent 2fa4bb6 commit 01db54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slim/deployment/model_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def choose(self, op):
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)
Expand Down

0 comments on commit 01db54e

Please sign in to comment.