docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Sign

    Sign(TensorFloat, TensorFloat)

    Performs an element-wise Sign math operation: f(x) = 1 if x > 0. f(x) = -1 if x < 0. Otherwise f(x) = 0.

    Declaration
    public override void Sign(TensorFloat X, TensorFloat O)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    Overrides
    CPUBackend.Sign(TensorFloat, TensorFloat)

    Sign(TensorInt, TensorInt)

    Performs an element-wise Sign math operation: f(x) = 1 if x > 0. f(x) = -1 if x < 0. Otherwise f(x) = 0.

    Declaration
    public override void Sign(TensorInt X, TensorInt O)
    Parameters
    Type Name Description
    TensorInt X

    The input tensor.

    TensorInt O

    The output tensor to be computed and filled.

    Overrides
    CPUBackend.Sign(TensorInt, TensorInt)
    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)