docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ScatterElements

    ScatterElements(Tensor, TensorInt, Tensor, Tensor, int, ScatterReductionMode)

    Copies the input tensor and updates values at indexes specified by the indices tensor with values specified by the updates tensor along a given axis.

    ScatterElements updates the values depending on the reduction mode used.

    Declaration
    public virtual void ScatterElements(Tensor X, TensorInt indices, Tensor updates, Tensor O, int axis, ScatterReductionMode reduction)
    Parameters
    Type Name Description
    Tensor X

    The input tensor.

    TensorInt indices

    The indices tensor.

    Tensor updates

    The updates tensor.

    Tensor O

    The output tensor to be computed and filled.

    int axis

    The axis on which to perform the scatter.

    ScatterReductionMode reduction

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

    Implements
    IBackend.ScatterElements(Tensor, TensorInt, Tensor, Tensor, int, ScatterReductionMode)
    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)