aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/packed_literal_reader.cc
diff options
context:
space:
mode:
authorGravatar Justin Lebar <jlebar@google.com>2018-08-24 13:19:52 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-24 13:24:06 -0700
commit94d267dfa6ee106dbf57c42a452925749bbe2f1a (patch)
tree7c85df21e1872b5d9a148c160db794bb5dfc12a6 /tensorflow/compiler/xla/packed_literal_reader.cc
parenta9e0c06a87857f73fdfc375abf7c69a2c28d87bf (diff)
Internal change
PiperOrigin-RevId: 210145594
Diffstat (limited to 'tensorflow/compiler/xla/packed_literal_reader.cc')
-rw-r--r--tensorflow/compiler/xla/packed_literal_reader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/compiler/xla/packed_literal_reader.cc b/tensorflow/compiler/xla/packed_literal_reader.cc
index 55c4a80e29..012df87551 100644
--- a/tensorflow/compiler/xla/packed_literal_reader.cc
+++ b/tensorflow/compiler/xla/packed_literal_reader.cc
@@ -64,7 +64,7 @@ StatusOr<std::unique_ptr<Literal>> PackedLiteralReader::Read(
tensorflow::gtl::ArraySlice<float> field = result->data<float>();
char* data = tensorflow::bit_cast<char*>(field.data());
uint64 bytes = elements * sizeof(float);
- tensorflow::StringPiece sp;
+ tensorflow::StringPiece sp; // non-absl OK
auto s = file_->Read(offset_, bytes, &sp, data);
offset_ += sp.size();
if (!s.ok()) {
@@ -85,7 +85,7 @@ bool PackedLiteralReader::IsExhausted() const {
// Try to read a single byte from offset_. If we can't, we've
// exhausted the data.
char single_byte[1];
- tensorflow::StringPiece sp;
+ tensorflow::StringPiece sp; // non-absl OK
auto s = file_->Read(offset_, sizeof(single_byte), &sp, single_byte);
return !s.ok();
}