docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsInf

    IsInf(TensorFloat, TensorInt, bool, bool)

    Performs an element-wise IsInf logical operation: f(x) = 1 elementwise if x is +Inf and detectPositive is true, or x is -Inf and detectNegative is true. Otherwise f(x) = 0.

    Declaration
    public override void IsInf(TensorFloat X, TensorInt O, bool detectNegative, bool detectPositive)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorInt O

    The output tensor to be computed and filled.

    bool detectNegative

    Whether to detect negative infinities in the IsInf function.

    bool detectPositive

    Whether to detect positive infinities in the IsInf function.

    Overrides
    CPUBackend.IsInf(TensorFloat, TensorInt, bool, bool)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)