tensorflow:: ops:: RaggedBincount

#include <math_ops.h>

סופר את מספר המופעים של כל ערך במערך שלם.

תַקצִיר

מפיק וקטור עם אורך size ואותו סוג d כמו weights . אם weights ריקים, אז index i מאחסן את מספר הפעמים שהערך i נספר ב- arr . אם weights אינם ריקים, אז index i מאחסן את סכום הערך ב- weights בכל אינדקס כאשר הערך המתאים ב- arr הוא i .

ערכים ב- arr מחוץ לטווח [0, size) אינם נלקחים בחשבון.

טיעונים:

  • היקף: אובייקט היקף
  • פיצולים: Tensor int64 חד-ממדי.
  • ערכים: Tensor דו-ממדי int.
  • גודל: Tensor סקלרי אינטימי לא שלילי.
  • weights: הוא Tensor int32, int64, float32, או float64 עם אותה צורה כמו input , או Tensor length-0, ובמקרה כזה הוא פועל כמשקלים שווים ל-1.

מאפיינים אופציונליים (ראה Attrs ):

  • binary_output: bool; האם הליבה צריכה לספור את הופעת האירועים או את מספרם.

החזרות:

  • Output : Tensor חד-ממדי עם אורך שווה size או Tensor דו-ממדי עם [batch_size, size ]. הספירות או המשקלים המסוכמים עבור כל ערך בטווח [0, size].

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

RaggedBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input splits, :: tensorflow::Input values, :: tensorflow::Input size, :: tensorflow::Input weights)
RaggedBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input splits, :: tensorflow::Input values, :: tensorflow::Input size, :: tensorflow::Input weights, const RaggedBincount::Attrs & attrs)

מאפיינים ציבוריים

operation
output

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

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

פונקציות סטטיות ציבוריות

BinaryOutput (bool x)

מבנים

tensorflow:: ops:: RaggedBincount:: Attrs

קובעי מאפיינים אופציונליים עבור RaggedBincount .

מאפיינים ציבוריים

מִבצָע

Operation operation

תְפוּקָה

::tensorflow::Output output

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

RaggedBincount

 RaggedBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input splits,
  ::tensorflow::Input values,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

RaggedBincount

 RaggedBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input splits,
  ::tensorflow::Input values,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const RaggedBincount::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

פלט בינארי

Attrs BinaryOutput(
  bool x
)