언어

Tensor.PermuteDimensions<T> 메서드

정의

매개 변수에 따라 텐서의 tensor 차원을 dimensions 바꿉니다. 1D 텐서인 경우 tensor 반환 tensor됩니다. 그렇지 않으면 새 Tensor<T> 메모리를 할당하여 새 축 순서를 사용하여 새 축을 만듭니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::Tensor<T> ^ PermuteDimensions(System::Numerics::Tensors::Tensor<T> ^ tensor, ReadOnlySpan<int> dimensions);
public static System.Numerics.Tensors.Tensor<T> PermuteDimensions<T>(this System.Numerics.Tensors.Tensor<T> tensor, ReadOnlySpan<int> dimensions);
static member PermuteDimensions : System.Numerics.Tensors.Tensor<'T> * ReadOnlySpan<int> -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function PermuteDimensions(Of T) (tensor As Tensor(Of T), dimensions As ReadOnlySpan(Of Integer)) As Tensor(Of T)

형식 매개 변수

T

매개 변수

tensor
Tensor<T>

입력 Tensor<T>

dimensions
ReadOnlySpan<Int32>

ReadOnlySpan<T> 새 축 순서를 지정합니다.

반품

적용 대상