tensorflow :: ops :: SetDiff1D
#include <array_ops.h>
数値または文字列の2つのリスト間の差を計算します。
概要
リスト所与のx
及びリストy
、この操作は、リスト返すout
にあるすべての値を表しx
が、NOT IN y
。返されたリストのout
番号がに現れるのと同じ順序でソートされたx
(重複は保持されます)。この操作は、 x
内の各out
要素の位置を表すリストidx
も返します。言い換えると:
out[i] = x[idx[i]] for i in [0, 1, ..., len(out) - 1]
たとえば、次の入力が与えられます。
x = [1, 2, 3, 4, 5, 6] y = [1, 3, 5]
この操作は次を返します:
out ==> [2, 4, 6] idx ==> [1, 3, 5]
引数:
- スコープ:スコープオブジェクト
- x:1-D。保持する値。
- y:1-D。削除する値。
戻り値:
コンストラクタとデストラクタ | |
---|---|
SetDiff1D (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y) | |
SetDiff1D (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y, const SetDiff1D::Attrs & attrs) |
パブリック属性 | |
---|---|
idx | |
operation | |
out |
パブリック静的関数 | |
---|---|
OutIdx (DataType x) |
構造体 | |
---|---|
tensorflow :: ops :: SetDiff1D :: Attrs | SetDiff1Dのオプションの属性セッター。 |
パブリック属性
idx
::tensorflow::Output idx
操作
Operation operation
でる
::tensorflow::Output out
公の行事
SetDiff1D
SetDiff1D( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y )
SetDiff1D
SetDiff1D( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y, const SetDiff1D::Attrs & attrs )
パブリック静的関数
OutIdx
Attrs OutIdx( DataType x )