code_13.py 195 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1 2 3 4
from keras import layers # 导入所有层
from keras import models # 导入所有模型
cnn = models.Sequential() # 序贯模型
cnn.add(layers.Conv2D(32, (3, 3), activation='relu', # 卷积层