-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protobuf support in TF Java #21
Comments
I think we should just add it pretty much as is as an additional module like BTW, one major issue with protobuf on Java is that all versions use the same package name |
Interesting archeological discovery related to this issue, according to this unit test, protobuf Java bindings were meant to be distributed with the Java client but couldn't due to some complications with Bazel, hence the reason they were distributed separately. |
Resolved by #38 |
Right now, the TensorFlow Java client from the repository does not expose directly protobufs that are part of the contract of the C API (Though in this thread, it was mentioned that protobufs would be eventually removed from the API but I have a feeling this won't happen anytime soon).
Instead, it compiles and distribute the protobufs Java bindings as a separate artifact and the client itself remains agnostic of the content of the messages and simply expose unmapped byte arrays, like here.
We need to decide how we want to handle those protobufs in the new distribution. Possible choices are:
Note that if we decide to compile the protobufs from the new TF Java client, it will brings its load of additional dependencies, such as grpc.
CC: @sjamesr
The text was updated successfully, but these errors were encountered: