tensorflow::ops::InvertPermutation
#include <array_ops.h>Menghitung permutasi invers dari sebuah tensor.
Ringkasan
Operasi ini menghitung kebalikan dari permutasi indeks. Operasi ini mengambil tensor bilangan bulat 1-D x , yang merepresentasikan indeks dari array berbasis nol, dan menukar setiap nilai dengan posisi indeksnya. Dengan kata lain, untuk tensor keluaran y dan tensor masukan x , operasi ini menghitung hal berikut:
y[x[i]] = i for i in [0, 1, ..., len(x) - 1]
Nilai harus mencakup 0. Tidak boleh ada nilai ganda atau nilai negatif.
Misalnya:
# tensor `x` is [3, 4, 0, 2, 1] invert_permutation(x) ==> [2, 4, 3, 0, 1]
Argumen:
- Cakupan: Objek Cakupan
- x: 1-D.
Mengembalikan:
-
Output: 1-D.
Konstruktor dan Destruktor | |
|---|---|
InvertPermutation (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Atribut publik | |
|---|---|
operation | |
y | |
Fungsi publik | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Atribut publik
operasi
Operation operation
y
::tensorflow::Output y
Fungsi publik
InvertPermutation
InvertPermutation( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const