Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 721287753
  • Loading branch information
tensorflower-gardener authored and tensorflow-copybara committed Jan 30, 2025
1 parent 9aabc14 commit 81d376d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow_serving/servables/tensorflow/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ absl::Status InputToSerializedExampleTensor(const Input& input,
// Benchmark ('BM_InputToSerializedExample') can help measure the effect of
// changes in the future.
absl::Cord tmp;
if (!input.SerializeToCord(&tmp)) {
if (!input.SerializeToString(&tmp)) {
return errors::InvalidArgument("Input failed to serialize. Size = ",
input.ByteSizeLong());
}
parse_serialized_input_ok = serialized_input.ParseFromCord(tmp);
parse_serialized_input_ok = serialized_input.ParseFromString(tmp);
}
#else
parse_serialized_input_ok =
Expand Down

0 comments on commit 81d376d

Please sign in to comment.