(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(Seq2Seq, self).get_description(get_weights=get_weights,
                                                    keep_states=keep_states)

        desc['config']['num_encoder_layers'] = len(self.encoder.layers)
        desc['config']['decoder_connections'] = self.decoder_connections
        self._desc = desc
        return desc
def get_description ( self , get_weights = False , keep_states = False ) : desc = super ( Seq2Seq , self ) . get_description ( get_weights = get_weights , keep_states = keep_states ) desc [ 'config' ] [ 'num_encoder_layers' ] = len ( self . encoder . layers ) desc [ 'config' ] [ 'decoder_connections' ] = self . decoder_connections self . _desc = desc return desc