Function abs

  • Calculates the absolute value (magniutde) of each tensor element. The absolute value of a number is always positive.

    Parameters

    Returns Tensor

    the absolute value of each tensor element