Improve error message in ColocateResourceAndRefEdges.

PiperOrigin-RevId: 237395227
This commit is contained in:
Ruoxin Sang 2019-03-07 23:19:38 -08:00 committed by TensorFlower Gardener
parent a86f6286b4
commit f6533187f2

View File

@ -212,7 +212,9 @@ Status Member::EnsureCompatibilityAcrossResourceEdge(
"Cannot place the graph because a reference or resource edge "
"connects colocation groups with incompatible assigned devices: ",
DeviceNameUtils::ParsedNameToString(src_root.assigned_device_name_),
" vs ", DeviceNameUtils::ParsedNameToString(assigned_device_name_));
" vs ", DeviceNameUtils::ParsedNameToString(assigned_device_name_),
". The edge src node is ", src.name(), " , and the dst node is ",
dst.name());
}
if (DeviceNameUtils::AreCompatibleDevNames(src_root.requested_device_name_,