'Get layer parameters. All parameters are needed for optimization, but
only weights are serialized.
Arguments:
get_weights (bool, optional): Control whether all parameters are returned or
just weights for serialization.
keep_states (bool, optional): Control whether all parameters are returned
or just weights for serialization.'

def get_description(self, get_weights=False, keep_states=False):

    desc = super(LayerContainer, self).get_description(skip=['layers'])
    desc['container'] = True
    desc['config']['layers'] = []
    for layer in self.layers:
        desc['config']['layers'].append(layer.get_description(get_weights=get_weights, keep_states=keep_states))
    self._desc = desc
    return desc
