テンソルフロー::作戦:: InvertPermutation

#include <array_ops.h>

テンソルの逆順列を計算します。

まとめ

この操作は、インデックスの順列の逆を計算します。これは、ゼロベースの配列のインデックスを表す 1 次元の整数テンソルxを受け取り、各値をそのインデックス位置と交換します。つまり、出力テンソルyと入力テンソルxに対して、この演算は次を計算します。

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

値には 0 を含める必要があります。重複した値や負​​の値は使用できません。

例えば:

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

引数:

戻り値:

コンストラクターとデストラクター

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

パブリック属性

operation
y

公共機能

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

パブリック属性

手術

Operation operation

y

::tensorflow::Output y

公共機能

InvertPermutation

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

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const