docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Equal

    Equal(TensorFloat, TensorFloat, TensorInt)

    Performs an element-wise Equal logical comparison operation: f(a, b) = 1 if a == b, otherwise f(x) = 0.

    This supports numpy-style broadcasting of input tensors.

    Declaration
    public override void Equal(TensorFloat A, TensorFloat B, TensorInt O)
    Parameters
    Type Name Description
    TensorFloat A

    The first input tensor.

    TensorFloat B

    The second input tensor.

    TensorInt O

    The output tensor to be computed and filled.

    Overrides
    CPUBackend.Equal(TensorFloat, TensorFloat, TensorInt)

    Equal(TensorInt, TensorInt, TensorInt)

    Performs an element-wise Equal logical comparison operation: f(a, b) = 1 if a == b, otherwise f(x) = 0.

    This supports numpy-style broadcasting of input tensors.

    Declaration
    public override void Equal(TensorInt A, TensorInt B, TensorInt O)
    Parameters
    Type Name Description
    TensorInt A

    The first input tensor.

    TensorInt B

    The second input tensor.

    TensorInt O

    The output tensor to be computed and filled.

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