tensorflow:: ops:: MaxPoolWithArgmax

#include <nn_ops.h>

यह इनपुट पर मैक्स पूलिंग करता है और अधिकतम मान और सूचकांक दोनों को आउटपुट करता है।

सारांश

argmax में इंडेक्स को समतल किया जाता है, ताकि स्थिति [b, y, x, c] पर अधिकतम मान समतल इंडेक्स बन जाए: (y * width + x) * channels + c यदि include_batch_in_index गलत है; ((b * height + y) * width + x) * channels + c यदि include_batch_in_index सही है।

फ़्लैटनिंग से पहले, लौटाए गए इंडेक्स हमेशा [0, height) x [0, width) के बीच होते हैं, भले ही पैडिंग शामिल हो और गणितीय रूप से सही उत्तर इसके बाहर हो (या तो नकारात्मक हो या बहुत बड़ा)। यह एक बग है, लेकिन फ़्लैटनिंग के कारण, इसे सुरक्षित और पुराने वर्ज़नों के अनुकूल तरीके से ठीक करना मुश्किल है।

तर्क:

  • स्कोप: एक स्कोप ऑब्जेक्ट
  • इनपुट: [batch, height, width, channels] आकार वाला 4-डी। पूल करने के लिए इनपुट ।
  • ksize: इनपुट टेंसर के प्रत्येक आयाम के लिए विंडो का आकार।
  • स्ट्राइड्स: इनपुट टेंसर के प्रत्येक आयाम के लिए स्लाइडिंग विंडो का स्ट्राइड।
  • पैडिंग: उपयोग किए जाने वाले पैडिंग एल्गोरिदम का प्रकार।

वैकल्पिक विशेषताएँ (देखें Attrs ):

  • include_batch_in_index: क्या argmax के समतलीकृत सूचकांक में बैच आयाम को शामिल करना है।

प्रतिफल:

  • Output : अधिकतम पूल्ड आउटपुट टेंसर।
  • Output आर्गमैक्स: 4-डी। प्रत्येक आउटपुट के लिए चुने गए अधिकतम मानों के चपटे सूचकांक।

कंस्ट्रक्टर और डिस्ट्रक्टर

MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding)
MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolWithArgmax::Attrs & attrs)

सार्वजनिक विशेषताएँ

argmax
operation
output

सार्वजनिक स्थैतिक फ़ंक्शन

IncludeBatchInIndex (bool x)
Targmax (DataType x)

संरचनाएँ

टेन्सरफ्लो::ऑप्स::मैक्सपूलविदआर्गमैक्स::एट्रिब्यूट्स

MaxPoolWithArgmax के लिए वैकल्पिक विशेषता निर्धारक।

सार्वजनिक विशेषताएँ

आर्गमैक्स

::tensorflow::Output argmax

संचालन

Operation operation

आउटपुट

::tensorflow::Output output

सार्वजनिक समारोह

MaxPoolWithArgmax

 MaxPoolWithArgmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)

MaxPoolWithArgmax

 MaxPoolWithArgmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding,
  const MaxPoolWithArgmax::Attrs & attrs
)

सार्वजनिक स्थैतिक फ़ंक्शन

IncludeBatchInIndex

Attrs IncludeBatchInIndex(
  bool x
)

टार्गमैक्स

Attrs Targmax(
  DataType x
)