aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/training/checkpoint_utils_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/training/checkpoint_utils_test.py')
-rw-r--r--tensorflow/python/training/checkpoint_utils_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/python/training/checkpoint_utils_test.py b/tensorflow/python/training/checkpoint_utils_test.py
index 2bb95b80ff..4e08a1c859 100644
--- a/tensorflow/python/training/checkpoint_utils_test.py
+++ b/tensorflow/python/training/checkpoint_utils_test.py
@@ -207,7 +207,9 @@ class CheckpointsTest(test.TestCase):
checkpoint_utils.init_from_checkpoint(checkpoint_dir,
{"useful_scope/": "useful_scope/"})
- self.assertEqual(my4._initializer_op.op.inputs[1].device, "/job:ps")
+ # initializer runs on the same task but always on CPU.
+ self.assertEqual(my4._initializer_op.op.inputs[1].device,
+ "/job:ps/device:CPU:0")
def testInitFromRootCheckpoint(self):
checkpoint_dir = self.get_temp_dir()