tensorflow:: ops:: SparseSegmentSqrtNWithNumSegments

#include <math_ops.h>

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

תַקצִיר

N הוא גודל הקטע המצטמצם.

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

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

טיעונים:

  • היקף: אובייקט היקף
  • אינדקסים: טנזור חד-ממדי. בעל דירוג זהה ל- segment_ids .
  • segment_ids: טנזור חד-ממדי. הערכים צריכים להיות ממוינים וניתן לחזור עליהם.
  • num_segments: צריך להיות שווה למספר מזהי הפלח הייחודיים.

החזרות:

  • Output : בעל צורה זהה לנתונים, למעט ממד 0 שגודלו k , מספר הקטעים.

בנאים והורסים

SparseSegmentSqrtNWithNumSegments (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

תפקידים ציבוריים

מקטע דליל ריבועי Nעם מספר מקטעים

 SparseSegmentSqrtNWithNumSegments(
  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