Skip to main content

ClikaRT::ops::scatter_

function

scatter_()

Tensor& scatter_(
    Tensor& self,
    int64_t dim,
    Tensor index,
    ScalarOrTensor src
)

In-place scatter: writes through self at the indexed positions; same arguments and error conditions as scatter(). Writes through self's storage (a strided view reaches its base buffer). Returns self for chaining.

Declared in ClikaRT/compute/ops.h, line 2568