TypeError: __init__() got an unexpected keyword argument 'name' when loading a model with Custom Layer
TypeError: __init__() got an unexpected keyword argument 'name' when loading a model with Custom Layer Question: I made a custom layer in keras for reshaping the outputs of a CNN before feeding to ConvLSTM2D layer class TemporalReshape(Layer): def __init__(self,batch_size,num_patches): super(TemporalReshape,self).__init__() self.batch_size = batch_size self.num_patches = num_patches def call(self,inputs): nshape = (self.batch_size,self.num_patches)+inputs.shape[1:] return tf.reshape(inputs, nshape) def …