tensorflow:: ops:: InvertPermutation
#include <array_ops.h>テンソルの逆順列を計算します。
まとめ
この操作は、インデックス順列の逆演算を計算します。0から始まる配列のインデックスを表す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]
議論:
- スコープ:スコープオブジェクト
- x: 1次元。
返品:
-
Output: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( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const