nixpkgs/pkgs/development/python-modules/tensorflow/system-protobuf.patch
Alexander Tsvyashchenko 487bb1b1e2
python3Packages.tensorflow: switched to Nix-provided protobuf. (#150887)
This prevents conflicts with other Python packages that also use protobuf, see e.g. #150765.
2021-12-18 17:39:59 -05:00

14 lines
675 B
Diff

diff --git a/tensorflow/core/kernels/example_parsing_ops.cc b/tensorflow/core/kernels/example_parsing_ops.cc
index a1265cfb5c6..ada919bbd7b 100644
--- a/tensorflow/core/kernels/example_parsing_ops.cc
+++ b/tensorflow/core/kernels/example_parsing_ops.cc
@@ -1218,7 +1218,7 @@ class DecodeJSONExampleOp : public OpKernel {
resolver_.get(), "type.googleapis.com/tensorflow.Example", &in, &out);
OP_REQUIRES(ctx, status.ok(),
errors::InvalidArgument("Error while parsing JSON: ",
- string(status.error_message())));
+ string(status.message())));
}
}