Skip to content

Commit

Permalink
ErrorCodes proto fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Jan 12, 2024
1 parent d1b1168 commit 5aeda89
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions tensorflow-core/tensorflow-core-native/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ http_archive(
name = "org_tensorflow",
patches = [
":tensorflow-visibility.patch",
":tensorflow-proto.patch",
],
patch_tool = "patch",
patch_args = ["-p1"],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
diff -ruN tensorflow/tensorflow/core/lib/core/error_codes.proto tensorflow-proto-patch/tensorflow/core/lib/core/error_codes.proto
--- tensorflow/tensorflow/core/lib/core/error_codes.proto
+++ tensorflow-proto-patch/tensorflow/core/lib/core/error_codes.proto
@@ -1,3 +1,5 @@
syntax = "proto3";

+package tensorflow;
+
import public "tsl/protobuf/error_codes.proto";

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
exports org.tensorflow.internal;
exports org.tensorflow.internal.c_api;
exports org.tensorflow.internal.c_api.global;
exports org.tensorflow.internal.c_api.presets to org.bytedeco.javacpp;
exports org.tensorflow.internal.c_api.presets to org.bytedeco.javacpp,tensorflow;
exports org.tensorflow.proto;
exports org.tensorflow.proto.data;
exports org.tensorflow.proto.data.model;
Expand Down

0 comments on commit 5aeda89

Please sign in to comment.