Tensor.PermuteDimensions<T> 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
매개 변수에 따라 텐서의 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
매개 변수
- dimensions
- ReadOnlySpan<Int32>
ReadOnlySpan<T> 새 축 순서를 지정합니다.