您能帮我解决这个错误吗?
TypeError: The added layer must be an instance of class Layer. Found: <keras.layers.convolutional.Conv2DTranspose object at 0x7f5dc629f240>
当我尝试执行以下行时,我得到了这个
decoder.add(Deconvolution2D(64, 3, 3, subsample=(1, 1), border_mode='same'))
我的进口是:
from keras.layers import Layer
from keras.layers import Input
from keras.layers.convolutional import Deconvolution2D