docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CumSum

    CumSum(TensorFloat, TensorFloat, int, bool, bool)

    Performs the cumulative sum along a given axis.

    Declaration
    void CumSum(TensorFloat X, TensorFloat O, int axis, bool reverse, bool exclusive)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    int axis

    The axis along which to apply the cumulative sum.

    bool reverse

    Whether to perform the cumulative sum from the end of the axis.

    bool exclusive

    Whether to include the respective input element in the cumulative sum.

    CumSum(TensorInt, TensorInt, int, bool, bool)

    Performs the cumulative sum along a given axis.

    Declaration
    void CumSum(TensorInt X, TensorInt O, int axis, bool reverse, bool exclusive)
    Parameters
    Type Name Description
    TensorInt X

    The input tensor.

    TensorInt O

    The output tensor to be computed and filled.

    int axis

    The axis along which to apply the cumulative sum.

    bool reverse

    Whether to perform the cumulative sum from the end of the axis.

    bool exclusive

    Whether to include the respective input element in the cumulative sum.

    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)