diff --git a/tensorflow/compiler/xla/tools/replay_computation.cc b/tensorflow/compiler/xla/tools/replay_computation.cc index 67a2c26201a..095655085e5 100644 --- a/tensorflow/compiler/xla/tools/replay_computation.cc +++ b/tensorflow/compiler/xla/tools/replay_computation.cc @@ -346,10 +346,10 @@ StatusOr> ParseRecordIoFile(absl::string_view filename, std::vector snapshots; uint64 offset = 0; - string record; + tensorflow::tstring record; while (reader.ReadRecord(&offset, &record).ok()) { HloSnapshot snapshot; - if (snapshot.mutable_hlo()->ParseFromString(record)) { + if (snapshot.mutable_hlo()->ParseFromStringPiece(record)) { snapshots.push_back(std::move(snapshot)); } else { LOG(ERROR) << "Encountered bad proto";