tensorflow:: אופס:: SparseSegmentSqrtNWithNumSegments

#include <math_ops.h>

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

סיכום

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

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

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

טיעונים:

  • scope: אובייקט Scope
  • מדדים: טנזור 1-D. בעל דירוג זהה לזה של segment_ids .
  • segment_ids: טנזור 1-D. יש למיין את הערכים וניתן לחזור עליהם.
  • 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

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

SparseSegmentSqrtNWithNumSegments

 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