Function sin

  • Plot of sin and its gradient

    Calculates:

    output = sin(input)
    

    Gradient:

    inputGrad = outputGrad * cos(input)
    

    Parameters

    • input: Tensor

      the input tensor of any shape

    Returns Tensor

    the output tensor

Generated using TypeDoc