tensorflow:: ops:: SparseSegmentMeanWithNumSegments

#include <math_ops.h>

מחשב את הממוצע לאורך מקטעים דלילים של טנזור.

תַקצִיר

כמו SparseSegmentMean , אך מאפשר שימוש ב-id חסר ב- segment_ids . אם חסר id, טנזור output במיקום זה יאפס.

קראו את הסעיף על פילוח לקבלת הסבר על פלחים.

טיעונים:

  • היקף: אובייקט היקף
  • אינדקסים: טנזור חד-ממדי. בעל דירוג זהה ל- segment_ids .
  • segment_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(
  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