Function frac

  • Plot of frac and its gradient

    Calculates:

    output = input >= 0.0 ? fract(input) : -fract(-input)
    

    Gradient:

    inputGrad = outputGrad
    

    Parameters

    • input: Tensor

      the input tensor of any shape

    Returns Tensor

    the output tensor

Generated using TypeDoc