tensorflow :: ops :: Średnia pula
#include <nn_ops.h>
Wykonuje średnie łączenie danych wejściowych.
streszczenie
Każdy wpis na output
jest wartością średnią z odpowiedniego rozmiaru okna ksize
w value
.
Argumenty:
- zakres: obiekt Scope
- wartość: 4-D z kształtem
[batch, height, width, channels]
. - ksize: rozmiar przesuwanego okna dla każdego wymiaru
value
. - kroki: krok przesuwanego okna dla każdego wymiaru
value
. - padding: typ algorytmu dopełniania, który ma być używany.
Atrybuty opcjonalne (patrz Attrs
):
- data_format: Określ format danych wejściowych i wyjściowych. W domyślnym formacie „NHWC” dane są przechowywane w kolejności: [batch, in_height, in_width, in_channels]. Alternatywnie, format mógłby być „NCHW”, kolejność przechowywania danych: [batch, in_channels, in_height, in_width].
Zwroty:
-
Output
: średni tensor wyjściowy w puli.
Konstruktorzy i niszczyciele | |
---|---|
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) |
Atrybuty publiczne | |
---|---|
operation | |
output |
Funkcje publiczne | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Publiczne funkcje statyczne | |
---|---|
DataFormat (StringPiece x) |
Struktury | |
---|---|
tensorflow :: ops :: AvgPool :: Attrs |
Atrybuty publiczne
operacja
Operation operation
wynik
::tensorflow::Output output
Funkcje publiczne
Średnia pula
AvgPool( const ::tensorflow::Scope & scope, ::tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding )
Średnia pula
AvgPool( const ::tensorflow::Scope & scope, ::tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const AvgPool::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Format danych
Attrs DataFormat( StringPiece x )