共用方式為


IReadOnlyTensor<TSelf,T>.Slice Method

Definition

Overloads

Slice(ReadOnlySpan<NIndex>)

Slices the tensor using the specified start indexes.

Slice(ReadOnlySpan<NRange>)

Slices the tensor using the specified ranges.

Slice(ReadOnlySpan<IntPtr>)

Slices the tensor using the specified start indexes.

Slice(ReadOnlySpan<NIndex>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Slices the tensor using the specified start indexes.

public:
 TSelf Slice(ReadOnlySpan<System::Buffers::NIndex> startIndex);
public TSelf Slice (scoped ReadOnlySpan<System.Buffers.NIndex> startIndex);
abstract member Slice : ReadOnlySpan<System.Buffers.NIndex> -> 'Self
Public Function Slice (startIndex As ReadOnlySpan(Of NIndex)) As TSelf

Parameters

startIndex
ReadOnlySpan<NIndex>

The start indexes to be used.

Returns

TSelf

The sliced tensor.

Applies to

Slice(ReadOnlySpan<NRange>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Slices the tensor using the specified ranges.

public:
 TSelf Slice(ReadOnlySpan<System::Buffers::NRange> range);
public TSelf Slice (scoped ReadOnlySpan<System.Buffers.NRange> range);
abstract member Slice : ReadOnlySpan<System.Buffers.NRange> -> 'Self
Public Function Slice (range As ReadOnlySpan(Of NRange)) As TSelf

Parameters

range
ReadOnlySpan<NRange>

The ranges to be used.

Returns

TSelf

The sliced tensor.

Applies to

Slice(ReadOnlySpan<IntPtr>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Slices the tensor using the specified start indexes.

public:
 TSelf Slice(ReadOnlySpan<IntPtr> start);
public TSelf Slice (scoped ReadOnlySpan<IntPtr> start);
abstract member Slice : ReadOnlySpan<nativeint> -> 'Self
Public Function Slice (start As ReadOnlySpan(Of IntPtr)) As TSelf

Parameters

start

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The start locations to be used.

Returns

TSelf

The sliced tensor.

Applies to