Method ScatterElements
ScatterElements<T>(T, TensorInt, T, int, ScatterReductionMode)
Copies the input tensor and updates values at indexes specified by the indices tensor with values specified by the updates tensor along a given axis.
ScatterElements updates the values depending on the reduction mode used.
Declaration
public T ScatterElements<T>(T X, TensorInt indices, T updates, int axis, ScatterReductionMode reduction) where T : Tensor
Parameters
| Type | Name | Description |
|---|---|---|
| T | X | The input tensor. |
| TensorInt | indices | The indices tensor. |
| T | updates | The updates tensor. |
| int | axis | The axis on which to perform the scatter. |
| ScatterReductionMode | reduction | The reduction mode used to update the values as a |
Returns
| Type | Description |
|---|---|
| T | The computed output tensor. |
Type Parameters
| Name | Description |
|---|---|
| T | The tensor type of the input and output tensors. |