(tensor, dim, keepdim)
return torch.norm(tensor, 2, dim, keepdim)
Computes the l2-norm of elements in input tensor.

    :param tensor: PyTorch tensor.
    :type tensor: `torch.nn.Module`
    :param dim: Reduction dimension.
    :type dim: `int`
    :param keepdim: Whether the output has `dim` retained.
    :type keepdim: `bool`
    :return: l2-norm of input tensor.
Computes the l2-norm of elements in input tensor.
Computes the l2 - norm of elements in input tensor .
def l2norm(tensor, dim, keepdim):
    """
    Computes the l2-norm of elements in input tensor.

    :param tensor: PyTorch tensor.
    :type tensor: `torch.nn.Module`
    :param dim: Reduction dimension.
    :type dim: `int`
    :param keepdim: Whether the output has `dim` retained.
    :type keepdim: `bool`
    :return: l2-norm of input tensor.
    """
    return torch.norm(tensor, 2, dim, keepdim)
def l2norm ( tensor , dim , keepdim ) : return torch . norm ( tensor , 2 , dim , keepdim )