docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ScatterND

    ScatterND(TensorFloat, TensorInt, TensorFloat, ScatterReductionMode)

    Copies the input tensor and updates values at indexes specified by the indices tensor with values specified by the updates tensor.

    ScatterND updates the values depending on the reduction mode used.

    Declaration
    public TensorFloat ScatterND(TensorFloat X, TensorInt indices, TensorFloat updates, ScatterReductionMode reduction)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorInt indices

    The indices tensor.

    TensorFloat updates

    The updates tensor.

    ScatterReductionMode reduction

    The reduction mode used to update the values as a ScatterReductionMode.

    Returns
    Type Description
    TensorFloat

    The computed output tensor.

    ScatterND(TensorInt, TensorInt, TensorInt, ScatterReductionMode)

    Copies the input tensor and updates values at indexes specified by the indices tensor with values specified by the updates tensor.

    ScatterND updates the values depending on the reduction mode used.

    Declaration
    public TensorInt ScatterND(TensorInt X, TensorInt indices, TensorInt updates, ScatterReductionMode reduction)
    Parameters
    Type Name Description
    TensorInt X

    The input tensor.

    TensorInt indices

    The indices tensor.

    TensorInt updates

    The updates tensor.

    ScatterReductionMode reduction

    The reduction mode used to update the values as a ScatterReductionMode.

    Returns
    Type Description
    TensorInt

    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)