(self, get_weights=False, keep_states=False)
return desc
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.
Get layer parameters. All parameters are needed for optimization, but
        only weights are serialized.
Get layer parameters . All parameters are needed for optimization but only weights are serialized .
def get_description(self, get_weights=False, keep_states=False):
        """
        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.
        """
        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
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