diff --git a/tensorflow/core/util/device_name_utils.h b/tensorflow/core/util/device_name_utils.h index 69e0d49b3b5..93fab444da4 100644 --- a/tensorflow/core/util/device_name_utils.h +++ b/tensorflow/core/util/device_name_utils.h @@ -74,6 +74,10 @@ class DeviceNameUtils { (has_id ? (other.has_id && id == other.id) : !other.has_id); } + bool operator!=(const ParsedName& other) const { + return !operator==(other); + } + bool has_job = false; string job; bool has_replica = false;