ClikaRT::ops::put
function
put()
A copy of x 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.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) when the element counts differ, an index is out of range, or its dtype is wrong (code_name()carries the reason).
Returns: a new tensor shaped like x.
Declared in ClikaRT/compute/ops.h, line 2543