Fix bugs in LogicalBuffer::ToString and BufferValue::ToProto: these functions
authorJeremy Lau <lauj@google.com>
Thu, 3 May 2018 23:08:48 +0000 (16:08 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 4 May 2018 17:34:30 +0000 (10:34 -0700)
commit04d5adbf848eba94e5c352cd0843a094b9fa0a4a
treea6db274fa0fbc3180cfaff537cded52f37d72434
parent200f4a2089cd4bef7832679cd121a2dbe85d6180
Fix bugs in LogicalBuffer::ToString and BufferValue::ToProto: these functions
may be called before set_color(), but color() check fails when no color is set.

PiperOrigin-RevId: 195327063
tensorflow/compiler/xla/service/buffer_value.cc
tensorflow/compiler/xla/service/logical_buffer.cc