Skip to main content

ClikaRT::ops::index_fill_

function

index_fill_()

Tensor& index_fill_(
    Tensor& self,
    int64_t dim,
    Tensor indices,
    ScalarOrTensor value
)

In-place index_fill: self[.., indices[i], ..] = value; same arguments and error conditions as index_fill(). Fills through self's storage (a strided view reaches its base buffer; aliases observe the write). Returns self under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling.

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