تدفق التوتر:: العمليات:: SparseSegmentMeanWithNumSegments

#include <math_ops.h>

يحسب المتوسط ​​على طول أجزاء متفرقة من الموتر.

ملخص

مثل SparseSegmentMean ، ولكنه يسمح بالمعرفات المفقودة في segment_ids . إذا كان المعرف مفقودًا، فسيتم صفر موتر output في هذا الموضع.

اقرأ القسم الخاص بالتجزئة للحصول على شرح للقطاعات.

الحجج:

  • النطاق: كائن النطاق
  • المؤشرات: موتر 1-D. له نفس رتبة segment_ids .
  • section_ids: موتر ثنائي الأبعاد. يجب فرز القيم ويمكن تكرارها.
  • num_segments: يجب أن يساوي عدد معرفات المقاطع المميزة.

عائدات:

  • Output : له نفس شكل البيانات، باستثناء البعد 0 الذي يحتوي على حجم num_segments .

البنائين والمدمرين

SparseSegmentMeanWithNumSegments (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input indices, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments)

الصفات العامة

operation
output

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

الصفات العامة

عملية

Operation operation

انتاج

::tensorflow::Output output

الوظائف العامة

SparseSegmentMeanWithNumSegments

 SparseSegmentMeanWithNumSegments(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input data,
  ::tensorflow::Input indices,
  ::tensorflow::Input segment_ids,
  ::tensorflow::Input num_segments
)

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const