टेंसरफ़्लो:: ऑप्स:: मैक्सपूलविथआर्गमैक्स

#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) में होते हैं, भले ही पैडिंग शामिल हो और गणितीय रूप से सही उत्तर बाहर हो (या तो नकारात्मक या बहुत बड़ा)। यह एक बग है, लेकिन इसे सुरक्षित बैकवर्ड संगत तरीके से ठीक करना मुश्किल है, खासकर चपटे होने के कारण।

तर्क:

  • स्कोप: एक स्कोप ऑब्जेक्ट
  • इनपुट: आकार के साथ 4-डी [batch, height, width, channels] पूल ओवर करने के लिए इनपुट .
  • 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 के लिए वैकल्पिक विशेषता सेटर्स।

सार्वजनिक गुण

argmax

::tensorflow::Output argmax

संचालन

Operation operation

आउटपुट

::tensorflow::Output output

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

मैक्सपूलविथआर्गमैक्स

 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
)

सार्वजनिक स्थैतिक कार्य

बैचइनइंडेक्स शामिल करें

Attrs IncludeBatchInIndex(
  bool x
)

टार्गमैक्स

Attrs Targmax(
  DataType x
)