Tensor.PermuteDimensions<T> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
É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
- dimensions
- ReadOnlySpan<Int32>
ReadOnlySpan<T> avec le nouveau classement de l’axe.