From 3c2fd0381a3b3c14951d4d15047bf153eaa39a3f Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 28 Apr 2026 01:17:37 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 906804089 --- tsl/platform/protobuf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsl/platform/protobuf.h b/tsl/platform/protobuf.h index e8bb3c36a..2fda972a7 100644 --- a/tsl/platform/protobuf.h +++ b/tsl/platform/protobuf.h @@ -112,7 +112,8 @@ inline bool SerializeToTString(const protobuf::MessageLite& proto, inline bool ParseFromTString(const tstring& input, protobuf::MessageLite* proto) { - return proto->ParseFromArray(input.data(), static_cast(input.size())); + return proto->ParseFromString( + absl::string_view(input.data(), static_cast(input.size()))); } // Analogue to StringOutputStream for tstring.