aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/buffer_value.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/buffer_value.h')
-rw-r--r--tensorflow/compiler/xla/service/buffer_value.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/buffer_value.h b/tensorflow/compiler/xla/service/buffer_value.h
index 69b3646356..11d8abc5ba 100644
--- a/tensorflow/compiler/xla/service/buffer_value.h
+++ b/tensorflow/compiler/xla/service/buffer_value.h
@@ -141,6 +141,9 @@ class BufferValue {
// operator< is required for std::set.
bool operator<(const BufferValue& other) const { return id_ < other.id_; }
+ bool operator==(const BufferValue& other) const { return id_ == other.id_; }
+ bool operator!=(const BufferValue& other) const { return id_ != other.id_; }
+
virtual string ToString() const = 0;
// TODO(lauj) rename LogicalBufferProto to BufferValueProto.