Function sign

  • Plot of sign and its gradient

    Calculates:

    output = sign(input)
    

    Gradient:

    inputGrad = 0
    

    Parameters

    • input: Tensor

      the input tensor of any shape

    Returns Tensor

    the output tensor

Generated using TypeDoc