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