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

#include <nn_ops.h>

入力に対して最大プーリングを実行し、最大値とインデックスの両方を出力します。

まとめ

argmaxのインデックスは平坦化されるため、位置[b, y, x, c]の最大値は平坦化されたインデックスになります。 include_batch_in_indexが False の場合は(y * width + x) * channels + c((b * height + y) * width + x) * channels + c include_batch_in_indexが True の場合。

返されるインデックスは、パディングが含まれていて数学的に正しい答えが外側 (負であるか大きすぎる) であっても、平坦化する前は常に[0, height) x [0, width)になります。これはバグですが、特にフラット化のため、安全な下位互換性のある方法で修正することは困難です。

引数:

  • スコープ:スコープオブジェクト
  • 入力: 形状[batch, height, width, channels]の 4-D。プールする入力
  • ksize: 入力テンソルの各次元のウィンドウのサイズ。
  • strides: 入力テンソルの各次元のスライディング ウィンドウのストライド。
  • padding: 使用するパディング アルゴリズムのタイプ。

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

  • include_batch_in_index: argmaxのフラット化されたインデックスにバッチ ディメンションを含めるかどうか。

戻り値:

  • Output Output: プールされた最大出力テンソル。
  • Output引数最大: 4-D。各出力に対して選択された最大値の平坦化されたインデックス。

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

MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding)
MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolWithArgmax::Attrs & attrs)

パブリック属性

argmax
operation
output

パブリック静的関数

IncludeBatchInIndex (bool x)
Targmax (DataType x)

構造体

tensorflow:: ops:: MaxPoolWithArgmax:: Attrs

MaxPoolWithArgmaxのオプションの属性セッター。

パブリック属性

引数最大

::tensorflow::Output argmax

手術

Operation operation

出力

::tensorflow::Output output

公共機能

MaxPoolWithArgmax

 MaxPoolWithArgmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)

MaxPoolWithArgmax

 MaxPoolWithArgmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding,
  const MaxPoolWithArgmax::Attrs & attrs
)

パブリック静的関数

IncludeBatchInIndex

Attrs IncludeBatchInIndex(
  bool x
)

ターグマックス

Attrs Targmax(
  DataType x
)