tensorflow でのデバッグ中にエラーが報告されます:
エラー: tensorflow オブジェクト検出 API チュートリアルの実行中にモジュール 'tensorflow' に属性 'gfile' エラーがありません。理由は、私の tf バージョンが 2.1.2 であり、関数名が解決策
に対応していないためです。
:
関連する関数名を変更します。 変更: tf.io.gfile.GFile
tf バージョンの表示:
gym:~$ python
>>>import tensorflow as tf
>>>print(tf.__version__)
TensorFlow のさまざまなバージョンに対応する gfile 関数名:
バージョン 1: tf.gfile.GFile
バージョン 2: tf.io.gfile.GFile
参考:
https://stackoverflow.com/questions/58363136/error-module-tensorflow-has-no-attribute-gfile-error-while-running-tensorfl