diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-07-21 17:59:48 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-07-21 18:12:13 +0000 |
commit | 65824056063718696f10c0a2f08d5c0bd6a9d737 (patch) | |
tree | ac5bf184ed44cd002b2e592347c3c0cdbde9ab51 | |
parent | e7585c5311b223c87908dfcd318d2da3264c8d28 (diff) | |
download | ports-65824056063718696f10c0a2f08d5c0bd6a9d737.tar.gz ports-65824056063718696f10c0a2f08d5c0bd6a9d737.zip |
science/py-tensorflow: Fix build with protobuf 3.17.3
-rw-r--r-- | science/py-tensorflow/files/patch-protobuf | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/science/py-tensorflow/files/patch-protobuf b/science/py-tensorflow/files/patch-protobuf new file mode 100644 index 000000000000..de3cd9510b53 --- /dev/null +++ b/science/py-tensorflow/files/patch-protobuf @@ -0,0 +1,22 @@ +--- tensorflow/core/kernels/example_parsing_ops.cc.orig 2021-01-04 20:18:42 UTC ++++ tensorflow/core/kernels/example_parsing_ops.cc +@@ -859,7 +859,7 @@ class DecodeJSONExampleOp : public OpKernel { + json_example, &binary_examples->flat<string>()(i)); + OP_REQUIRES(ctx, status.ok(), + errors::InvalidArgument("Error while parsing JSON: ", +- string(status.error_message()))); ++ string(status.message()))); + } + } + +--- tensorflow/core/profiler/rpc/client/dump_tpu_profile.cc.orig 2021-01-04 20:18:42 UTC ++++ tensorflow/core/profiler/rpc/client/dump_tpu_profile.cc +@@ -102,7 +102,7 @@ Status DumpOpProfileToLogDirectory(StringPiece run_dir + if (!status.ok()) { + return errors::Internal( + "Failed to convert op profile to json. Skipping... ", +- string(status.error_message())); ++ string(status.message())); + } + TF_RETURN_IF_ERROR(WriteStringToFile(Env::Default(), path, json)); + if (os) { |