Show / Hide Table of Contents

    Method Tanh

    static member Tanh: Tensor<'T> -> Tensor<'T>

    Element-wise hyperbolic tangent.

    Declaration
    static member Tanh: a:Tensor<'T> -> Tensor<'T>
    Parameters
    Type Name Description
    Tensor<'T> a

    The tensor to apply this operation to.

    Returns
    Type Description
    Tensor<'T>

    A new tensor containing the result of this operation.

    Remarks

    Computes the hyperbolic tangent of each element of the specified tensor and returns them as a new tensor. Do not call this function directly; instead use the F# tanh function.

    Examples
     let a = HostTensor.ofList [-1.57079; 0.0; 1.57079]
     let b = tanh a // b = [-0.91715; 0.0; 0.91715]
    See Also
    member FillTanh: Tensor<'T> -> unit
    Back to top Generated by DocFX