tensorflow:: ops:: SparseBincount

#include <math_ops.h>

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

תַקצִיר

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

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

טיעונים:

  • היקף: אובייקט היקף
  • אינדקסים: Tensor int64 דו-ממדי.
  • ערכים: Tensor שלם חד-ממדי.
  • צורה_צפופה: Tensor int64 חד-ממדי.
  • גודל: 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].

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

SparseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input dense_shape, :: tensorflow::Input size, :: tensorflow::Input weights)
SparseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input dense_shape, :: tensorflow::Input size, :: tensorflow::Input weights, const SparseBincount::Attrs & attrs)

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

operation
output

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

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

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

BinaryOutput (bool x)

מבנים

tensorflow:: ops:: SparseBincount:: Attrs

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

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

מִבצָע

Operation operation

תְפוּקָה

::tensorflow::Output output

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

SparseBincount

 SparseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input values,
  ::tensorflow::Input dense_shape,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

SparseBincount

 SparseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input values,
  ::tensorflow::Input dense_shape,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const SparseBincount::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

פלט בינארי

Attrs BinaryOutput(
  bool x
)