#include <nn_ops.h>
Performs average pooling on the input.
Each entry in output
is the mean of the corresponding size ksize
window in value
.
Arguments:
[batch, height, width, channels]
.value
.value
.Optional attributes (see Attrs
):
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 | |
---|---|
output |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
DataFormat(StringPiece x) |
Structs | |
---|---|
tensorflow::ops::AvgPool::Attrs | Optional attribute setters for AvgPool. |
::tensorflow::Output output
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 )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs DataFormat( StringPiece x )
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/avg-pool.html