No module named 'tensorflow.contrib'


 
tensorflow.gpu uninstall

No module named 'tensorflow.contrib'

tensorflow 2.0以后沒有 tensorflow.contrib
pip install tensorflow==1.14.0
1、FLAGS._parse_flags()報錯AttributeError:_parse_flags
解決:
因為TensorFlow的版本問題了,TensorFlow版本升級后,它就無情的拋棄了FLAGS._parse_flags()這種用法,改成了用FLAGS.flag_values_dict()
2、raise ValueError("Shapes %s and %s are incompatible" % (self, other))
      ValueError: Shapes (3, ?, 1, 1, 128) and () are incompatible
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM