tensor akışı:: işlem:: MaxPoolWithArgmax

#include <nn_ops.h>

Girişte maksimum havuzlama gerçekleştirir ve hem maksimum değerleri hem de endeksleri çıkarır.

Özet

argmax indeksler düzleştirilir, böylece [b, y, x, c] konumundaki maksimum değer düzleştirilmiş indeks haline gelir: (y * width + x) * channels + c , eğer include_batch_in_index False ise; ((b * height + y) * width + x) * channels + c eğer include_batch_in_index True ise.

Döndürülen indeksler, dolgu söz konusu olsa ve matematiksel olarak doğru cevap dışarıda olsa bile (negatif veya çok büyük), düzleştirmeden önce her zaman [0, height) x [0, width) cinsindendir. Bu bir hatadır, ancak özellikle düzleşme nedeniyle bunu güvenli bir şekilde geriye dönük olarak uyumlu bir şekilde düzeltmek zordur.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • giriş: şekilli 4-D [batch, height, width, channels] . Havuza girmek için giriş yapın .
  • ksize: Giriş tensörünün her boyutu için pencerenin boyutu.
  • adımlar: Giriş tensörünün her boyutu için kayan pencerenin adımı.
  • padding: Kullanılacak dolgu algoritmasının türü.

İsteğe bağlı özellikler (bkz. Attrs ):

  • include_batch_in_index: Toplu boyutun argmax düzleştirilmiş dizinine dahil edilip edilmeyeceği.

İadeler:

  • Output çıkışı: Maksimum havuzlanmış çıkış tensörü.
  • Output argmax: 4-D. Her çıkış için seçilen maksimum değerlerin düzleştirilmiş endeksleri.

Yapıcılar ve Yıkıcılar

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)

Genel özellikler

argmax
operation
output

Genel statik işlevler

IncludeBatchInIndex (bool x)
Targmax (DataType x)

Yapılar

tensorflow:: ops:: MaxPoolWithArgmax:: Öznitelikler

MaxPoolWithArgmax için isteğe bağlı öznitelik ayarlayıcılar.

Genel özellikler

argmaks

::tensorflow::Output argmax

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

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
)

Genel statik işlevler

IncludeBatchInIndex

Attrs IncludeBatchInIndex(
  bool x
)

Targmax

Attrs Targmax(
  DataType x
)