Model Zoo ResNet implementation fails with TensorFlow 2.5 custom ops

Abierto
#13,572 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

Comienza reproduciendo el fallo con TensorFlow 2.5 en la implementación de ResNet de Model Zoo y, a continuación, compara la carga de operaciones personalizadas con TensorFlow 2.4. El issue no indica ningún archivo fuente ni prueba; se considera terminado cuando se haya identificado y corregido el problema de compatibilidad para que el modelo ResNet se cargue y funcione con TensorFlow 2.5.

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

Descripción

Description

I'm encountering compatibility issues with the ResNet implementation in Model Zoo when using TensorFlow 2.5.

Environment

  • TensorFlow version: 2.5
  • Models repository version: (latest as of report date)
  • Operating system:
  • Python version:

Error Details

When attempting to use the ResNet implementation from the Model Zoo with TensorFlow 2.5, the model fails to load due to incompatibility with custom operations.

Failure Mode

The model fails specifically when loading custom operations that were compiled against previous TensorFlow versions. The error occurs during model initialization before any training or inference can take place.

Affected Components

  • Model Zoo ResNet implementation
  • Custom operations in TensorFlow 2.5
  • Model loading pipeline

Steps to Reproduce

  1. Install TensorFlow 2.5
  2. Clone the tensorflow/models repository
  3. Attempt to load/use the ResNet implementation from Model Zoo
  4. Observe the failure with custom ops

Expected Behavior

The ResNet implementation should load and function correctly with TensorFlow 2.5.

Potential Workarounds

  • Downgrading to TensorFlow 2.4.x temporarily resolves the issue
  • Modifying the custom op loading mechanism to be compatible with TF 2.5's API changes
  • Using the Keras built-in ResNet implementation as an alternative

Any guidance or fixes to resolve this compatibility issue would be greatly appreciated.

Additional Context

This issue appears to be related to the changes in TensorFlow's C++ API for custom ops between version 2.4 and 2.5.

Lenguaje dominante
Python
Estrellas
77.6k
Forks
44.8k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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.

Más de tensorflow/models

Todos los issues de tensorflow/models

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.