tensorflow:: ops:: NthElement

#include <nn_ops.h>

最後の次元におけるn番目の順序統計量の値を求めます。

まとめ

入力がベクトル(ランク1)の場合、ベクトルの中でn番目に小さい値である要素を見つけ、それらの値をスカラーテンソルとして出力します。

行列(または高ランク入力)の場合、各行(または最後の次元に沿ったベクトル)のn番目に小さい値であるエントリを計算します。したがって、

values.shape = input.shape[:-1]

議論:

  • スコープ:スコープオブジェクト
  • 入力: 1次元以上で、最後の次元は少なくともn+1です。
  • n: 0次元。最後の次元(行列の場合は各行)に沿って選択するソート済みベクトルの位置。nの有効な範囲は[0, input.shape[:-1])です。

オプション属性( Attrs参照):

  • reverse: Trueに設定すると、ベクトル内のn番目に大きい値を見つけます。逆の場合も同様です。

返品:

  • Output :各最終次元スライスに沿ったn番目の順序統計量。

構築者と破壊者

NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n)
NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n, const NthElement::Attrs & attrs)

公開属性

operation
values

公的機能

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

パブリック静的関数

Reverse (bool x)

構造

tensorflow:: ops:: NthElement:: Attrs

NthElementのオプションの属性設定子。

公開属性

手術

Operation operation

値

::tensorflow::Output values

公的機能

NthElement

 NthElement(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input n
)

NthElement

 NthElement(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input n,
  const NthElement::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

逆行する

Attrs Reverse(
  bool x
)