Modify values selected by indices
.
Arguments
- self
(Tensor) Tensor that will be indexed.
- indices
(
List[Tensor]
) List of indices. Indices are torch tensors withtorch_long()
dtype.- values
(Tensor) values that will be replaced the indexed location. Used for
torch_index_put
andtorch_index_put_
.- accumulate
(bool) Wether instead of replacing the current values with
values
, you want to add them.