tensorflow:: אופס:: Bincount

#include <math_ops.h>

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

סיכום

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

מתעלמים מערכים ב- arr מחוץ לטווח [0, גודל).

טיעונים:

  • scope: אובייקט Scope
  • arr: int32 Tensor .
  • גודל: לא שלילי int32 scalar Tensor .
  • משקלים: הוא טנסור int32, int64, float32 או Tensor עם אותה צורה כמו arr , או אורך-0 Tensor , ובמקרה זה הוא פועל ככל המשקלים השווים ל-1.

החזרות:

  • Output : Tensor 1D עם אורך שווה 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

 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