Keras that does not support TensorFlow 2.0. We recommend using `tf.keras`, or alternatively, downgrading to TensorFlow 1.14

前端 未结 7 1581
孤独总比滥情好
孤独总比滥情好 2021-02-13 15:41

I am having an error regarding (Keras that does not support TensorFlow 2.0. We recommend using tf.keras, or alternatively, downgrading to TensorFlow 1.14.) any reco

相关标签:
7条回答
  • 2021-02-13 16:19

    You should only have to change the imports at the top:

    from tensorflow.python.keras.layers import Dense
    from tensorflow.python.keras import Sequential
    
    classifier = Sequential()
    classifier.add(Dense(6, init = 'uniform', activation = 'relu', input_dim = 11))
    
    0 讨论(0)
提交回复
热议问题