#NEWLINE# def L1( tensor , wd = 0.001 ) : #NEWLINE# #INDENT# ' L1.\n\n    Computes the L1 norm of a tensor:\n\n      output = sum(|t|) * wd\n\n    Arguments:\n        tensor: `Tensor`. The tensor to apply regularization.\n        wd: `float`. The decay.\n\n    Returns:\n        The regularization `Tensor`.\n\n    ' #NEWLINE# return tf . mul ( tf . reduce_sum ( tf . abs ( wd ) ) , wd , name = 'L1-Loss' )