github.com/mattdangerw/keras-text-generation 在我的CMD (Windows 10)中,我输入了: python train.py 我得到了以下错误: Using TensorFlow", line 74, in get_uidAttributeError: module 'tensorflow' has noattribute 'get_default_gr
ml = Sequential()这给了我一个错误:AttributeError: module 'tensorflow' has no attribute 'get_default_graph'。我使用的依赖项是:
2.0.0-beta1Keras:Tensorflow: 2.2.4Python: 3.7.3
虽然我得到了一些输出,但出现了一个错误 AttributeError: module 'tensorflow' has no attribute 'div' 我在堆栈溢出上查找了这个问题,就像我遇到的大多数问题一样,但没有解决方案。我对TensorFlow完全陌生。 注意:我会在这里粘贴整个代码,但这是一个1400+代码,所以我直接超链接了这个文件,因为人们可能会感到恼火,而且这样做会让这篇文章变得很长。
PycharmProjects/UrbanSound/src/recognize_sound.py", line 12, in <module>AttributeError: module 'tensorflow' has no attribute 'GraphDef'(tensorflow) $ python3 -c 'import tensor