Method Gather
Gather<T>(T, TensorInt, int)
Takes values from the input tensor indexed by the indices tensor along a given axis and concatenates them.
Declaration
public T Gather<T>(T X, TensorInt indices, int axis) where T : Tensor
Parameters
| Type | Name | Description |
|---|---|---|
| T | X | The input tensor. |
| TensorInt | indices | The indices tensor. |
| int | axis | The axis along which to gather. |
Returns
| Type | Description |
|---|---|
| T | The computed output tensor. |
Type Parameters
| Name | Description |
|---|---|
| T | The tensor type of the input and output tensors. |