docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ScatterND

    ScatterND(TensorFloat, TensorInt, TensorFloat, 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 override void ScatterND(TensorFloat X, TensorInt indices, TensorFloat updates, TensorFloat O, ScatterReductionMode reduction)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorInt indices

    The indices tensor.

    TensorFloat updates

    The updates tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    ScatterReductionMode reduction

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

    Overrides
    CPUBackend.ScatterND(TensorFloat, TensorInt, TensorFloat, TensorFloat, ScatterReductionMode)

    ScatterND(TensorInt, 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 override void ScatterND(TensorInt X, TensorInt indices, TensorInt updates, TensorInt O, ScatterReductionMode reduction)
    Parameters
    Type Name Description
    TensorInt X

    The input tensor.

    TensorInt indices

    The indices tensor.

    TensorInt updates

    The updates tensor.

    TensorInt O

    The output tensor to be computed and filled.

    ScatterReductionMode reduction

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

    Overrides
    CPUBackend.ScatterND(TensorInt, TensorInt, TensorInt, TensorInt, 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)