다음을 통해 공유


Tensor.SetSlice 메서드

정의

오버로드

SetSlice<T>(Tensor<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

지정된 ranges 제공된 values 사용하여 지정된 tensor 조각을 설정합니다.

SetSlice<T>(TensorSpan<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

지정된 ranges 제공된 values 사용하여 지정된 tensor 조각을 설정합니다.

SetSlice<T>(Tensor<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

지정된 ranges 제공된 values 사용하여 지정된 tensor 조각을 설정합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::Tensor<T> ^ SetSlice(System::Numerics::Tensors::Tensor<T> ^ tensor, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % values, ReadOnlySpan<System::Buffers::NRange> ranges);
public static System.Numerics.Tensors.Tensor<T> SetSlice<T> (this System.Numerics.Tensors.Tensor<T> tensor, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values, scoped ReadOnlySpan<System.Buffers.NRange> ranges);
static member SetSlice : System.Numerics.Tensors.Tensor<'T> * ReadOnlyTensorSpan * ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function SetSlice(Of T) (tensor As Tensor(Of T), ByRef values As ReadOnlyTensorSpan(Of T), ranges As ReadOnlySpan(Of NRange)) As Tensor(Of T)

형식 매개 변수

T

매개 변수

tensor
Tensor<T>

입력 Tensor<T>.

values
ReadOnlyTensorSpan<T>

tensor설정할 값입니다.

ranges
ReadOnlySpan<NRange>

설정할 범위입니다.

반환

적용 대상

SetSlice<T>(TensorSpan<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

지정된 ranges 제공된 values 사용하여 지정된 tensor 조각을 설정합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::TensorSpan<T> ^ SetSlice(System::Numerics::Tensors::TensorSpan<T> % tensor, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % values, ReadOnlySpan<System::Buffers::NRange> ranges);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> SetSlice<T> (this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values, scoped ReadOnlySpan<System.Buffers.NRange> ranges);
static member SetSlice : TensorSpan * ReadOnlyTensorSpan * ReadOnlySpan<System.Buffers.NRange> -> TensorSpan
<Extension()>
Public Function SetSlice(Of T) (ByRef tensor As TensorSpan(Of T), ByRef values As ReadOnlyTensorSpan(Of T), ranges As ReadOnlySpan(Of NRange)) As TensorSpan(Of T)

형식 매개 변수

T

매개 변수

tensor
TensorSpan<T>

입력 Tensor<T>.

values
ReadOnlyTensorSpan<T>

tensor설정할 값입니다.

ranges
ReadOnlySpan<NRange>

설정할 범위입니다.

반환

적용 대상