tensorflow :: opérations :: InvertPermutation
#include <array_ops.h>
Calcule la permutation inverse d'un tenseur.
Résumé
Cette opération calcule l'inverse d'une permutation d'indice. Il prend un tenseur entier 1-D x
, qui représente les indices d'un tableau de base zéro, et échange chaque valeur avec sa position d'index. En d'autres termes, pour un tenseur de sortie y
et un tenseur d'entrée x
, cette opération calcule ce qui suit:
y[x[i]] = i for i in [0, 1, ..., len(x) - 1]
Les valeurs doivent inclure 0. Il ne peut y avoir aucune valeur en double ni aucune valeur négative.
Par example:
# tensor `x` is [3, 4, 0, 2, 1] invert_permutation(x) ==> [2, 4, 3, 0, 1]
Arguments:
- scope: un objet Scope
- x: 1-D.
Retour:
-
Output
: 1-D.
Constructeurs et destructeurs | |
---|---|
InvertPermutation (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Attributs publics | |
---|---|
operation | |
y |
Fonctions publiques | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Attributs publics
opération
Operation operation
y
::tensorflow::Output y
Fonctions publiques
InvertPermutation
InvertPermutation( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
nœud
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const