小编Dea*_*ean的帖子

不支持 TensorFlow 2.0 的 Keras。我们建议使用 `tf.keras`,或者降级到 TensorFlow 1.14

我有关于(不支持 TensorFlow 2.0 的 Keras。我们建议使用tf.keras,或者降级到 TensorFlow 1.14。)任何建议的错误。

谢谢

import keras
#For building the Neural Network layer by layer
from keras.models import Sequential
#To randomly initialize the weights to small numbers close to 0(But not 0)
from keras.layers import Dense

classifier=tf.keras.Sequential()

classifier.add(Dense(output_dim = 6, init = 'uniform', activation = 'relu', input_dim = 11))




RuntimeError: It looks like you are trying to use a version of multi-backend Keras that does not support TensorFlow 2.0. We recommend using `tf.keras`, or alternatively, …
Run Code Online (Sandbox Code Playgroud)

python neural-network keras tensorflow tf.keras

13
推荐指数
2
解决办法
2万
查看次数

标签 统计

keras ×1

neural-network ×1

python ×1

tensorflow ×1

tf.keras ×1