Function constrain

  • Constrains the value of each tensor element between a minimum and maximum value.

    Returns

    each tensor element constrained to the given range

    Parameters

    • t: Tensor

      the input tensor

    • low: number

      the minimum value

    • high: number

      the maximum value

    Returns Tensor

Generated using TypeDoc