docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Sum

    Sum(TensorFloat[], 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 override void Sum(TensorFloat[] tensors, TensorFloat O)
    Parameters
    Type Name Description
    TensorFloat[] tensors
    TensorFloat O

    The output tensor to be computed and filled.

    Overrides
    CPUBackend.Sum(TensorFloat[], TensorFloat)
    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)