tensorflow::
ops::
AvgPool
#include <nn_ops.h>
Performs average pooling on the input.
Summary
Each entry in
output
is the mean of the corresponding size
ksize
window in
value
.
Args:
- scope: A Scope object
-
value: 4-D with shape
[batch, height, width, channels]
. -
ksize: The size of the sliding window for each dimension of
value
. -
strides: The stride of the sliding window for each dimension of
value
. - padding: The type of padding algorithm to use.
Optional attributes (see
Attrs
):
- data_format: Specify the data format of the input and output data. With the default format "NHWC", the data is stored in the order of: [batch, in_height, in_width, in_channels]. Alternatively, the format could be "NCHW", the data storage order of: [batch, in_channels, in_height, in_width].
Returns:
-
Output
: The average pooled output tensor.
Constructors and Destructors |
|
---|---|
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)
|
Public attributes |
|
---|---|
operation
|
|
output
|
Public functions |
|
---|---|
node
() const
|
::tensorflow::Node *
|
operator::tensorflow::Input
() const
|
|
operator::tensorflow::Output
() const
|
|
Public static functions |
|
---|---|
DataFormat
(StringPiece x)
|
Structs |
|
---|---|
tensorflow::
|
Optional attribute setters for AvgPool . |
Public attributes
Public functions
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 )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const