Automated Code Change

PiperOrigin-RevId: 825940381
This commit is contained in:
A. Unique TensorFlower 2025-10-30 02:33:47 -07:00 committed by TensorFlower Gardener
parent 1fa646265a
commit cfa7953589
2 changed files with 2 additions and 4 deletions

View File

@ -26,8 +26,7 @@ namespace {
SavedObjectGraph ParseSavedObjectGraph(absl::string_view text_proto) { SavedObjectGraph ParseSavedObjectGraph(absl::string_view text_proto) {
SavedObjectGraph value; SavedObjectGraph value;
CHECK(tensorflow::protobuf::TextFormat::ParseFromString(string(text_proto), CHECK(tensorflow::protobuf::TextFormat::ParseFromString(text_proto, &value));
&value));
return value; return value;
} }

View File

@ -178,8 +178,7 @@ tuple_value: {
StructuredValue ParseStructuredValue(absl::string_view text_proto) { StructuredValue ParseStructuredValue(absl::string_view text_proto) {
StructuredValue value; StructuredValue value;
CHECK(tensorflow::protobuf::TextFormat::ParseFromString(string(text_proto), CHECK(tensorflow::protobuf::TextFormat::ParseFromString(text_proto, &value));
&value));
return value; return value;
} }