تينسورفلو :: العمليات :: MaxPoolWithArgmax
#include <nn_ops.h>
يقوم بأقصى تجميع للمدخلات والمخرجات على حد سواء القيم والمؤشرات القصوى.
ملخص
يتم تسوية المؤشرات في argmax
، بحيث تصبح القيمة القصوى في الموضع [b, y, x, c]
فهرسًا مسطحًا: (y * width + x) * channels + c
إذا include_batch_in_index
is False؛ ((b * height + y) * width + x) * channels + c
إذا كانت include_batch_in_index
صحيحة.
تكون الفهارس التي يتم إرجاعها دائمًا في [0, height) x [0, width)
قبل التسوية ، حتى إذا كانت الحشوة متضمنة والإجابة الصحيحة رياضيًا بالخارج (إما سالبة أو كبيرة جدًا). هذا خطأ ، لكن إصلاحه يصعب القيام به بطريقة آمنة متوافقة مع الإصدارات السابقة ، خاصةً بسبب التسطيح.
الحجج:
- النطاق: كائن النطاق
- الإدخال: 4-D مع الشكل
[batch, height, width, channels]
. المدخلات لتجمع أكثر. - ksize: حجم النافذة لكل بُعد من أبعاد موتر الإدخال.
- strides: خطوة النافذة المنزلقة لكل بعد من أبعاد موتر الإدخال.
- المساحة المتروكة: نوع خوارزمية الحشو المراد استخدامها.
السمات الاختيارية (انظر 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) |
الهياكل | |
---|---|
tensorflow :: ops :: MaxPoolWithArgmax :: Attrs | محددات السمات الاختيارية لـ 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 )
Targmax
Attrs Targmax( DataType x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2020-04-20 (حسب التوقيت العالمي المتفَّق عليه)