Method Slice
Slice(ReadOnlySpan<int>, ReadOnlySpan<int>, ReadOnlySpan<int>, ReadOnlySpan<int>)
Creates a TensorShape that results from slicing this along given axes with given starts, ends, and steps.
Declaration
public TensorShape Slice(ReadOnlySpan<int> starts, ReadOnlySpan<int> ends, ReadOnlySpan<int> axes, ReadOnlySpan<int> steps)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<int> | starts | The start indices along each of the |
| ReadOnlySpan<int> | ends | The end indices along each of the |
| ReadOnlySpan<int> | axes | The optional axes along which to slice. The default value is [0, 1, 2...rank-1]. |
| ReadOnlySpan<int> | steps | The optional step sizes for each of the |
Returns
| Type | Description |
|---|---|
| TensorShape | The sliced tensor shape. |