Change warning message for case where Python detects a colocation that conflicts...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 22 Feb 2018 18:32:59 +0000 (10:32 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 22 Feb 2018 18:37:17 +0000 (10:37 -0800)
PiperOrigin-RevId: 186637887

tensorflow/python/framework/ops.py

index 013a4df..5a14ea4 100644 (file)
@@ -3361,9 +3361,9 @@ class Graph(object):
           if (op.device and pydev.canonical_name(op.device) !=
               pydev.canonical_name(colocation_op.device)):
             logging.warning("Tried to colocate %s with an op %s that had "
-                            "a different device: %s vs %s. "
-                            "Ignoring colocation property.", op.name,
-                            colocation_op.name, op.device,
+                            "a different device: %s vs %s. Postponing "
+                            "error-checking until all devices are assigned.",
+                            op.name, colocation_op.name, op.device,
                             colocation_op.device)
           else:
             op._set_device(colocation_op.device)  # pylint: disable=protected-access