Method Slice
Slice(Tensor, Tensor, ReadOnlySpan<int>, ReadOnlySpan<int>, ReadOnlySpan<int>)
Calculates an output tensor by slicing the input tensor along given axes with given starts, ends, and steps.
Declaration
public virtual void Slice(Tensor X, Tensor O, ReadOnlySpan<int> starts, ReadOnlySpan<int> axes, ReadOnlySpan<int> steps)
Parameters
Type | Name | Description |
---|---|---|
Tensor | X | The input tensor. |
Tensor | O | The output tensor to be computed and filled. |
ReadOnlySpan<int> | starts | The start index along each axis. |
ReadOnlySpan<int> | axes | The axes along which to slice. If this is |
ReadOnlySpan<int> | steps | The step values for slicing. If this is |