tensorflow :: ops :: MaxPoolWithArgmax
#include <nn_ops.h>
Melakukan penggabungan maksimal pada input dan output baik nilai dan indeks maks.
Ringkasan
Indeks dalam argmax
diratakan, sehingga nilai maksimum pada posisi [b, y, x, c]
menjadi indeks pipih: (y * width + x) * channels + c
jika include_batch_in_index
bernilai False; ((b * height + y) * width + x) * channels + c
jika include_batch_in_index
adalah True.
Indeks yang dikembalikan selalu dalam [0, height) x [0, width)
sebelum diratakan, bahkan jika bantalan terlibat dan jawaban yang benar secara matematis ada di luar (negatif atau terlalu besar). Ini adalah bug, tetapi memperbaikinya sulit dilakukan dengan cara yang aman dan kompatibel dengan mundur, terutama karena perataan.
Argumen:
- scope: Objek Scope
- input: 4-D dengan bentuk
[batch, height, width, channels]
. Masukan untuk dikumpulkan. - ksize: Ukuran jendela untuk setiap dimensi tensor input.
- langkah: Langkah jendela geser untuk setiap dimensi tensor input.
- padding: Jenis algoritma padding yang akan digunakan.
Atribut opsional (lihat Attrs
):
- include_batch_in_index: Apakah akan menyertakan dimensi batch dalam indeks
argmax
diratakan.
Pengembalian:
-
Output
keluaran: Tensor keluaran gabungan maksimal. -
Output
argmax: 4-D. Indeks yang diratakan dari nilai maksimal yang dipilih untuk setiap keluaran.
Pembuat dan Penghancur | |
---|---|
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) |
Atribut publik | |
---|---|
argmax | |
operation | |
output |
Fungsi statis publik | |
---|---|
IncludeBatchInIndex (bool x) | |
Targmax (DataType x) |
Structs | |
---|---|
tensorflow :: ops :: MaxPoolWithArgmax :: Attrs | Penyetel atribut opsional untuk MaxPoolWithArgmax . |
Atribut publik
argmax.dll
::tensorflow::Output argmax
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
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 )
Fungsi statis publik
IncludeBatchInIndex
Attrs IncludeBatchInIndex( bool x )
Targmax
Attrs Targmax( DataType x )