Leer en inglés

Compartir a través de


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.

C#
public TSelf Slice(scoped ReadOnlySpan<System.Buffers.NIndex> startIndex);

Parameters

startIndex
ReadOnlySpan<NIndex>

The start indexes to be used.

Returns

TSelf

The sliced tensor.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

Slice(ReadOnlySpan<NRange>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Slices the tensor using the specified ranges.

C#
public TSelf Slice(scoped ReadOnlySpan<System.Buffers.NRange> range);

Parameters

range
ReadOnlySpan<NRange>

The ranges to be used.

Returns

TSelf

The sliced tensor.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

Slice(ReadOnlySpan<IntPtr>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Slices the tensor using the specified start indexes.

C#
public TSelf Slice(scoped ReadOnlySpan<IntPtr> start);

Parameters

start

ReadOnlySpan<IntPtr>

The start locations to be used.

Returns

TSelf

The sliced tensor.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)