Show / Hide Table of Contents

    Method any

    static member any: Tensor<bool> -> bool

    Checks if any elements of the tensor are true.

    Declaration
    static member any: src:Tensor<bool> -> bool
    Parameters
    Type Name Description
    Tensor<bool> src

    The tensor containing the source values.

    Returns
    Type Description
    bool

    A scalar containing the result of this operation.

    Remarks

    It is checked whether any element of the tensor is true. If so, true is returned; otherwise false is returned.

    If the tensor is empty false is returned.

    Examples
     let a = HostTensor.ofList2D [[true; true; true]
                                  [false; true; true]]
     let b = Tensor.any a // b = true
    See Also
    static member anyTensor: Tensor<bool> -> Tensor<bool>
    static member anyAxis: int -> Tensor<bool> -> Tensor<bool>
    Back to top Generated by DocFX