Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensorflow :: ops :: InvertPermutation

#include <array_ops.h>

Bir tensörün ters permütasyonunu hesaplar.

Özet

Bu işlem, bir dizin permütasyonunun tersini hesaplar. Sıfır tabanlı bir dizinin endekslerini temsil eden 1-D tamsayı tensörü x alır ve her bir değeri kendi dizin konumuyla değiştirir. Başka bir deyişle, bir çıkış tensörü y ve bir giriş tensörü x bu işlem aşağıdakileri hesaplar:

y[x[i]] = i for i in [0, 1, ..., len(x) - 1]

Değerler 0 içermelidir. Yinelenen değerler veya negatif değerler olamaz.

Örneğin:

# tensor `x` is [3, 4, 0, 2, 1]
invert_permutation(x) ==> [2, 4, 3, 0, 1]

Argümanlar:

  • kapsam: Bir Scope nesnesi
  • x: 1-D.

İadeler:

Yapıcılar ve Yıkıcılar

InvertPermutation (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

Genel özellikler

operation
y

Kamusal işlevler

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Genel özellikler

operasyon

Operation operation

y

::tensorflow::Output y

Kamusal işlevler

InvertPermutation

 InvertPermutation(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

düğüm

::tensorflow::Node * node() const 

operator :: tensorflow :: Girdi

 operator::tensorflow::Input() const 

operator :: tensorflow :: Çıktı

 operator::tensorflow::Output() const