#NEWLINE# def set_loss( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'Clear the current loss functions from the network and add a new one.\n\n        All parameters and keyword arguments are passed to :func:`add_loss`\n        after clearing the current losses.\n        ' #NEWLINE# self . losses = [ ] #NEWLINE# self . add_loss ( * self , ** kwargs )