tensorflow::ops::MaxPoolGradGradWithArgmax
#include <nn_ops.h>
Computes second-order gradients of the maxpooling function.
Summary
Arguments:
- scope: A Scope object
- input: The original input.
- grad: 4-D with shape
[batch, height, width, channels]. Gradients w.r.t. the input ofmax_pool. - argmax: The indices of the maximum values chosen for each output of
max_pool. - ksize: The size of the window for each dimension of the input tensor.
- strides: The stride of the sliding window for each dimension of the input tensor.
- padding: The type of padding algorithm to use.
Optional attributes (see Attrs):
- include_batch_in_index: Whether to include batch dimension in flattened index of
argmax.
Returns:
-
Output: Gradients of gradients w.r.t. the input ofmax_pool.
| Constructors and Destructors | |
|---|---|
MaxPoolGradGradWithArgmax(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input grad, ::tensorflow::Input argmax, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
MaxPoolGradGradWithArgmax(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input grad, ::tensorflow::Input argmax, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolGradGradWithArgmax::Attrs & attrs) |
| Public attributes | |
|---|---|
operation | |
output | |
| Public functions | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Public static functions | |
|---|---|
IncludeBatchInIndex(bool x) | |
| Structs | |
|---|---|
| tensorflow::ops::MaxPoolGradGradWithArgmax::Attrs | Optional attribute setters for MaxPoolGradGradWithArgmax. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
MaxPoolGradGradWithArgmax
MaxPoolGradGradWithArgmax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input grad, ::tensorflow::Input argmax, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding )
MaxPoolGradGradWithArgmax
MaxPoolGradGradWithArgmax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input grad, ::tensorflow::Input argmax, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolGradGradWithArgmax::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
IncludeBatchInIndex
Attrs IncludeBatchInIndex( bool x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/max-pool-grad-grad-with-argmax