Model Zoo ResNet implementation fails with TensorFlow 2.5 custom ops

オープン
#13,572 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

まず、Model Zoo の ResNet 実装で TensorFlow 2.5 を使用して失敗を再現し、次に TensorFlow 2.4 でカスタムオペレーションの読み込みを比較します。この issue ではソースファイルやテストは指定されていません。ResNet モデルが TensorFlow 2.5 で読み込まれ、動作するように互換性の問題を特定して修正できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
77.6k
フォーク
44.8k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/models のほかの issue

tensorflow/models の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。