second_fashion_model.add(LeakyReLU(alpha=0.05))
抛出错误为:
添加的图层必须是图层类的实例。成立:
second_fashion_model.add(LeakyReLU(alpha=0.05))
抛出错误为:
添加的图层必须是图层类的实例。成立:
确保:
例子:
from keras.layers import LeakyReLU
model = Sequential()
model.add(Dense(90))
model.add(LeakyReLU(alpha=0.03))