docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Sum

    Sum(params TensorFloat[])

    Performs an element-wise Sum math operation: f(x1, x2 ... xn) = x1 + x2 ... xn.

    This supports numpy-style broadcasting of input tensors.

    Declaration
    public TensorFloat Sum(params TensorFloat[] tensors)
    Parameters
    Type Name Description
    TensorFloat[] tensors

    The input tensors.

    Returns
    Type Description
    TensorFloat

    The computed output 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)