tensorflow:: ops:: DenseBincount

#include <math_ops.h>

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

תַקצִיר

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

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

טיעונים:

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

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

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

החזרות:

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

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

DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights)
DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights, const DenseBincount::Attrs & attrs)

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

operation
output

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

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

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

BinaryOutput (bool x)

מבנים

tensorflow:: ops:: DenseBincount:: Attrs

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

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

מִבצָע

Operation operation

תְפוּקָה

::tensorflow::Output output

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

DenseBincount

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

DenseBincount

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const DenseBincount::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

פלט בינארי

Attrs BinaryOutput(
  bool x
)