다음을 통해 공유


Tensor.PermuteDimensions<T> 메서드

정의

dimensions 매개 변수에 따라 tensor 텐서의 차원을 바꿉니다. tensor 1D 텐서이면 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, scoped 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>.

반환

적용 대상