tensorflow:: ops:: Bincount

#include <math_ops.h>

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

תַקצִיר

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

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

טיעונים:

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

החזרות:

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

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

Bincount (const :: tensorflow::Scope & scope, :: tensorflow::Input arr, :: tensorflow::Input size, :: tensorflow::Input weights)

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

bins
operation

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

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

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

פחים

::tensorflow::Output bins

מִבצָע

Operation operation

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

בינקאונט

 Bincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input arr,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const