from keras import optimizers # 导入优化器 cnn = models.Sequential() # 贯序模型 cnn.add(layers.Conv2D(32, (3, 3), activation='relu', # 卷积层