1、安装tensorflow
pip install --upgrade tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
2、安装Keras
pip install --upgrade keras -i https://pypi.tuna.tsinghua.edu.cn/simple
超级快!!!
检验是否安装成功:
from keras.models import Sequential from keras.layers import Dense from keras.layers import Activation # Dense 全连接层 layers = [Dense(32, input_shape=(784,)), # 32,784 核数 Activation('relu'), # 激活函数 Dense(10), Activation('softmax')] model = Sequential(layers) model.summary()
运行结果:
快速安装Keras、tensorflow
猜你喜欢
转载自blog.csdn.net/weixin_43442778/article/details/103095442
今日推荐
周排行