Tensorflow :: ops :: AvgPool
#include <nn_ops.h>
Führt ein durchschnittliches Pooling für die Eingabe durch.
Zusammenfassung
Jeder Eintrag in der output
ist der Mittelwert des entsprechenden Fensters der Größe ksize
im value
.
Argumente:
- scope: Ein Scope- Objekt
- Wert: 4-D mit Form
[batch, height, width, channels]
. - ksize: die Größe des Schiebefensters für jede Dimension des
value
. - Schritte: Der Schritt des Schiebefensters für jede Dimension des
value
. - padding: Die Art des zu verwendenden Auffüllalgorithmus.
Optionale Attribute (siehe Attrs
):
- Datenformat: Geben Sie das Datenformat der Eingabe- und Ausgabedaten an. Mit dem Standardformat "NHWC" werden die Daten in der Reihenfolge gespeichert: [Batch, In_Höhe, In_Breite, In_Kanäle]. Alternativ könnte das Format "NCHW" sein, die Datenspeicherreihenfolge von: [batch, in_channels, in_height, in_width].
Kehrt zurück:
-
Output
: Der durchschnittliche gepoolte Ausgangstensor.
Konstruktoren und Destruktoren | |
---|---|
AvgPool (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
AvgPool (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const AvgPool::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
DataFormat (StringPiece x) |
Strukturen | |
---|---|
tensorflow :: ops :: AvgPool :: Attrs | Optionale Attributsetzer für AvgPool . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
AvgPool
AvgPool( const ::tensorflow::Scope & scope, ::tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding )
AvgPool
AvgPool( const ::tensorflow::Scope & scope, ::tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const AvgPool::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Datei Format
Attrs DataFormat( StringPiece x )