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
 
 

posted on 2020-03-19 16:33  NLP东哥  阅读(20168)  评论(0)    收藏  举报