संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: मैक्सपूलग्रैडग्रैडविथआर्गमैक्स
#include <nn_ops.h>
मैक्सपूलिंग फ़ंक्शन के दूसरे क्रम के ग्रेडिएंट की गणना करता है।
सारांश
तर्क:
- स्कोप: एक स्कोप ऑब्जेक्ट
- इनपुट: मूल इनपुट.
- ग्रेड: 4-डी आकार के साथ
[batch, height, width, channels]
। ग्रेजुएट्स max_pool
के इनपुट को लिखते हैं। - argmax:
max_pool
के प्रत्येक आउटपुट के लिए चुने गए अधिकतम मानों के सूचकांक। - ksize: इनपुट टेंसर के प्रत्येक आयाम के लिए विंडो का आकार।
- स्ट्राइड्स: इनपुट टेंसर के प्रत्येक आयाम के लिए स्लाइडिंग विंडो का स्ट्राइड।
- पैडिंग: उपयोग करने के लिए पैडिंग एल्गोरिदम का प्रकार।
वैकल्पिक विशेषताएँ (देखें Attrs
):
- include_batch_in_index: क्या
argmax
के चपटे सूचकांक में बैच आयाम शामिल करना है।
रिटर्न:
-
Output
: ग्रेडिएंट्स के ग्रेडिएंट्स max_pool
के इनपुट को लिखते हैं।
निर्माता और विध्वंसक |
---|
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) |
सार्वजनिक गुण
सार्वजनिक समारोह
नोड
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ऑपरेटर::टेन्सरफ़्लो::आउटपुट
operator::tensorflow::Output() const
सार्वजनिक स्थैतिक कार्य
बैचइनइंडेक्स शामिल करें
Attrs IncludeBatchInIndex(
bool x
)
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (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/r2.2/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/r2.2/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/r2.2/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/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` grad, ::`[tensorflow::Input](/versions/r2.2/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/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` grad, ::`[tensorflow::Input](/versions/r2.2/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/r2.2/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/r2.2/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/r2.2/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/r2.2/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/r2.2/api_docs/cc/struct/tensorflow/ops/max-pool-grad-grad-with-argmax/attrs) | Optional attribute setters for [MaxPoolGradGradWithArgmax](/versions/r2.2/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```"]]