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