tensorflow / tensorflow/java

Request for support for Protobuf Java 4.x.x (specifically 4.32.1) in TensorFlow Java

Abierto
#621 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Java
Estrellas
928
Forks
227
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza revisando la configuración de dependencias de TensorFlow Java y su compatibilidad con la parte de Python descrita en el issue. Compara la compatibilidad actual con protobuf Java 3.21.9 con la compatibilidad solicitada para 4.32.1, incluido el comportamiento relacionado con los descriptores; se considera terminado cuando exista una compatibilidad documentada y funcional para la configuración híbrida Java/Python.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java, python
Área
build-system, machine-learning
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.