Langue

Tensor.PermuteDimensions<T> Méthode

Définition

Échange les dimensions du tensor capteur en fonction du dimensions paramètre. S’il tensor s’agit d’un capteur 1D, il retourne tensor. Dans le cas contraire, il crée un nouvel Tensor<T> ordre d’axe en allouant une nouvelle mémoire.

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)

Paramètres de type

T

Paramètres

tensor
Tensor<T>

Entrée Tensor<T>

dimensions
ReadOnlySpan<Int32>

ReadOnlySpan<T> avec le nouveau classement de l’axe.

Retours

S’applique à