tensorflow :: ops :: MaxPoolWithArgmax
#include <nn_ops.h>
Girişte maksimum havuzlama gerçekleştirir ve hem maksimum değerleri hem de endeksleri çıkarır.
Özet
argmax
indisler düzleştirilir, böylece [b, y, x, c]
konumundaki maksimum değer düzleştirilmiş indeks olur: (y * width + x) * channels + c
include_batch_in_index
False ise (y * width + x) * channels + c
; include_batch_in_index
True ise ((b * height + y) * width + x) * channels + c
.
Döndürülen indisler, dolgu söz konusu olsa ve matematiksel olarak doğru yanıt dışarıda (negatif veya çok büyük) olsa bile, düzleştirmeden önce her zaman [0, height) x [0, width)
içindedir. Bu bir hatadır, ancak düzeltmek, özellikle düzleştirme nedeniyle geriye dönük olarak güvenli bir şekilde yapmak zordur.
Argümanlar:
- kapsam: Bir Scope nesnesi
- girdi: 4-D şekilli
[batch, height, width, channels]
. Girdi üzerinde havuz için. - ksize: Giriş tensörünün her bir boyutu için pencere boyutu.
- strides: Giriş tensörünün her bir boyutu için kayan pencerenin adım sayısı.
- padding: Kullanılacak dolgu algoritmasının türü.
İsteğe bağlı özellikler (bkz. Attrs
):
- include_batch_in_index: Toplu boyutun düzleştirilmiş
argmax
dizinine dahilargmax
.
İadeler:
-
Output
çıkışı: Birleştirilmiş maksimum çıkış tensörü. -
Output
argmax: 4-D. Her çıktı 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 :: Attrs | MaxPoolWithArgmax için isteğe bağlı öznitelik belirleyicileri. |
Genel özellikler
argmax
::tensorflow::Output argmax
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
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 )