docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Where

    Where(TensorInt, Tensor, Tensor, Tensor)

    Performs an element-wise Where logical operation: f(condition, a, b) = a if condition is true, otherwise f(condition, a, b) = b.

    Declaration
    public override void Where(TensorInt C, Tensor A, Tensor B, Tensor O)
    Parameters
    Type Name Description
    TensorInt C

    The condition tensor.

    Tensor A

    The first input tensor.

    Tensor B

    The second input tensor.

    Tensor O

    The output tensor to be computed and filled.

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