#NEWLINE# def get_description( self , get_weights = False , keep_states = True ) : #NEWLINE# #INDENT# '\n        Get layer parameters. All parameters are needed for optimization, but\n        only Weights are serialized.\n\n        Arguments:\n            keep_states (bool): Control whether all parameters are returned\n                or just weights for serialization. Defaults to True.\n        ' #NEWLINE# serial_dict = super ( ParameterLayer , self ) . get_description ( ) #NEWLINE# if get_weights : #NEWLINE# #INDENT# serial_dict [ 'params' ] = { #NEWLINE# #INDENT# 'W' : self . W . get ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# if keep_states : #NEWLINE# #INDENT# serial_dict [ 'states' ] = [ s . get ( ) for s in self . states ] #NEWLINE# #UNINDENT# #UNINDENT# return serial_dict