//clika-runtime/io.clika.runtime/Ops/put
put
[common]
fun put(input: Tensor, index: Tensor, source: Tensor, accumulate: Boolean = false): Tensor
put(input: Tensor, index: Tensor, source: Tensor, accumulate: Boolean = false): the put operator. A copy of input with source written at FLAT (row-major linearized) positions: out.flat[index[i]] = source.flat[i]. With accumulate = true duplicate positions ADD instead of overwrite. index and source carry the same element count; index dtype law as gather.