Request for support for Protobuf Java 4.x.x (specifically 4.32.1) in TensorFlow Java
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 928
- フォーク
- 227
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
Hi Everyone 👋
I have a project where I am using a java/python hybrid of Tensorflow in a Machine Learning. My project was based on
System information
- TensorFlow version (you are using): 1.2.0-SNAPSHOT
- Are you willing to contribute it (Yes/No): No
Describe the feature and the current behavior/state.
In my project, I am working with a hybrid TensorFlow setup using both Python and Java. The Python side uses TensorFlow 2.15 and protobuf 3.20.3, while the Java side uses TensorFlow 0.5.0 and protobuf 3.21.7.
Due to a security vulnerability (CVE-2025-4565), I need to update the Python protobuf from 3.20.3 to 4.25.8. After upgrading, I encountered an intermittent issue stemming from descriptor changes between protobuf versions 3.x.x and 4.x.x. TensorFlow Python supports protobuf 4.25.8, but TensorFlow Java (1.2.0-SNAPSHOT) only supports protobuf Java 3.21.9.
Given that protobuf Java has since been updated (to version 4.32.1 as of this writing), I would like to request official support for protobuf Java 4.x.x, particularly 4.32.1, in TensorFlow Java to ensure compatibility with the updated Python side of my project.
Will this change the current api? How?
Yes, this change will require updating the dependencies in the TensorFlow Java ecosystem to include protobuf Java 4.x.x support. This update may involve changes to how descriptors and certain functions are handled, so users may need to adjust their code to accommodate those changes.
Who will benefit with this feature?
- Developers using TensorFlow in hybrid Python/Java environments.
- Developers who need to update to the latest protobuf versions for security (CVE-2025-4565) or compatibility with other libraries.
- Users facing compatibility issues due to mismatched versions of protobuf between Python and Java.
Any Other info.
The issue is critical as it directly impacts security and cross-platform compatibility. It would be beneficial if this update could be rolled into a future release of TensorFlow Java, or at least made available in a stable branch for users who rely on protobuf Java 4.x.x.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、TensorFlow Java の依存関係設定と、issue に記載されている Python 側との互換性を確認します。現在の protobuf Java 3.21.9 のサポートと、要求されている 4.32.1 のサポートを、descriptor 関連の動作も含めて比較します。完了条件は、ハイブリッド Java/Python 構成での互換性が文書化され、動作することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, python
- 領域
- build-system, machine-learning
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100