docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Where

    Where<T>(TensorInt, T, T)

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

    Declaration
    public T Where<T>(TensorInt C, T A, T B) where T : Tensor
    Parameters
    Type Name Description
    TensorInt C

    The condition tensor.

    T A

    The first input tensor.

    T B

    The second input tensor.

    Returns
    Type Description
    T

    The computed output tensor.

    Type Parameters
    Name Description
    T

    The tensor type of the input and output tensors.

    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)