Stay organized with collections
Save and categorize content based on your preferences.
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 of max_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 of max_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
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
IncludeBatchInIndex
Attrs IncludeBatchInIndex(
bool x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# tensorflow::ops::MaxPoolGradGradWithArgmax Class Reference\n\ntensorflow::ops::MaxPoolGradGradWithArgmax\n==========================================\n\n`#include \u003cnn_ops.h\u003e`\n\nComputes second-order gradients of the maxpooling function.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: The original input.\n- grad: 4-D with shape `[batch, height, width, channels]`. Gradients w.r.t. the input of `max_pool`.\n- argmax: The indices of the maximum values chosen for each output of `max_pool`.\n- ksize: The size of the window for each dimension of the input tensor.\n- strides: The stride of the sliding window for each dimension of the input tensor.\n- padding: The type of padding algorithm to use.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-with-argmax/attrs#structtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1_1_attrs)):\n\n- include_batch_in_index: Whether to include batch dimension in flattened index of `argmax`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): Gradients of gradients w.r.t. the input of `max_pool`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [MaxPoolGradGradWithArgmax](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1a593b2e655426fc2115b078b9fa3d58c9)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` grad, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` argmax, const gtl::ArraySlice\u003c int \u003e & ksize, const gtl::ArraySlice\u003c int \u003e & strides, StringPiece padding)` ||\n| [MaxPoolGradGradWithArgmax](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1ae16cefddf3e2d1bc07b1be0a310d0f5f)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` grad, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` argmax, const gtl::ArraySlice\u003c int \u003e & ksize, const gtl::ArraySlice\u003c int \u003e & strides, StringPiece padding, const `[MaxPoolGradGradWithArgmax::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-with-argmax/attrs#structtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1ad7651c4aa8ab3970d854e03fea44b931) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1a1df14c4bce71fd9dc7d6011430a93483) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1a4fab108da33b0eca234b7b8476eadc8a)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1a1c878b05b1f1c50d0ac8b18bd8dabe5c)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1a8de5ba5ff913d7e716975d514f3a398a)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IncludeBatchInIndex](#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1a08b144b554cd408cdae86515c196fbf0)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-with-argmax/attrs#structtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::MaxPoolGradGradWithArgmax::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-with-argmax/attrs) | Optional attribute setters for [MaxPoolGradGradWithArgmax](/versions/r1.15/api_docs/cc/class/tensorflow/ops/max-pool-grad-grad-with-argmax#classtensorflow_1_1ops_1_1_max_pool_grad_grad_with_argmax). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### MaxPoolGradGradWithArgmax\n\n```gdscript\n MaxPoolGradGradWithArgmax(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input grad,\n ::tensorflow::Input argmax,\n const gtl::ArraySlice\u003c int \u003e & ksize,\n const gtl::ArraySlice\u003c int \u003e & strides,\n StringPiece padding\n)\n``` \n\n### MaxPoolGradGradWithArgmax\n\n```gdscript\n MaxPoolGradGradWithArgmax(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input grad,\n ::tensorflow::Input argmax,\n const gtl::ArraySlice\u003c int \u003e & ksize,\n const gtl::ArraySlice\u003c int \u003e & strides,\n StringPiece padding,\n const MaxPoolGradGradWithArgmax::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### IncludeBatchInIndex\n\n```text\nAttrs IncludeBatchInIndex(\n bool x\n)\n```"]]