carpet/proximity.py
def pseudo_soft_th_tensor(z, lbda, step_size):
    """ Soft-thresholding for Torch tensor. """
    assert z.ndim == 2
    z_ = z.clone()
    z_[:, 1:] = _soft_th_tensor(z[:, 1:], lbda * step_size)
    return z_
 Soft-thresholding for Torch tensor. 
Soft-thresholding for Torch tensor.
Soft - thresholding for Torch tensor .
def pseudo_soft_th_tensor(z, lbda, step_size):
    assert z.ndim == 2
    z_ = z.clone()
    z_[:, 1:] = _soft_th_tensor(z[:, 1:], lbda * step_size)
    return z_
def pseudo_soft_th_tensor ( z , lbda , step_size ) : assert z . ndim == 2 z_ = z . clone ( ) z_ [ : , 1 : ] = _soft_th_tensor ( z [ : , 1 : ] , lbda * step_size ) return z_
Soft-thresholding for Torch tensor.
Soft - thresholding for Torch tensor .
""" Soft-thresholding for Torch tensor. """
z
lbda
step_size