本人的机器 : Win10 64位
显卡 Quadro P520 | CUDA 10.1.120
1)先安装 python 3.6.6 (不要3.7 和 3.8)
安装完了之后 用 python -V (大写的v) 瞅一眼
2)tensorflow 1.4.0 必须匹配 keras 2.0.8
numpy==1.16.0(不用这个 会蹦warning)
matplotlib(随意)
安装命令
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.4.0
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple keras==2.0.8
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy==1.16.0
```
3)
https://www.jianshu.com/p/e9c1e68a615e
用这个入门
4)
以下代码 保存为 test.py ,然后运行 python test.py
import tensorflow as tf
mnist = tf.keras.datasets.mnist # 28 x 28 images of hand-written digits 0-9
#### 可视化数据
from keras.models import Sequential
model = Sequential()
from keras.layers import Dense
model.add(Dense(units=64, activation='relu', input_dim=100))
model.add(Dense(units=10, activation='softmax'))
model.compile(loss='categorical_crossentropy',
optimizer='sgd',
metrics=['accuracy'])