Function tan

  • Plot of tan and its gradient

    Calculates:

    output = tan(input)
    

    Gradient:

    inputGrad = outputGrad / (cos(input) * cos(input))
    

    Parameters

    • input: Tensor

      the input tensor of any shape

    Returns Tensor

    the output tensor

Generated using TypeDoc