tensorflow:: אופס:: SparseBincount
#include <math_ops.h>סופר את מספר המופעים של כל ערך במערך שלמים.
תַקצִיר
 פלט וקטור עם size אורך ואותו dtype כמו weights . אם weights ריקות, אינדקס i מאחסן את מספר הפעמים שהערך i נספר ב- arr . אם weights אינן ריקות, אז מדד i מאחסן את סכום הערך weights בכל מדד כאשר הערך המתאים ב- arr הוא i .
 מתעלמים מערכים ב- arr מחוץ לטווח [0, גודל).
טיעונים:
- scope: אובייקט Scope
-  מדדים: 2D int64 Tensor.
-  ערכים: 1D int Tensor.
-  צפיפות_צורה: 1D int64 Tensor.
-  גודל: לא שלילי int scalar Tensor.
-  משקלים: הוא Tensorint32, int64, float32 או float64 עם אותה צורה כמוinput, או אורך-0Tensor, ובמקרה זה הוא פועל ככל המשקלים השווים ל-1.
 מאפיינים אופציונליים (ראה Attrs ):
- binary_output: bool; האם על הקרנל לספור את המראה או את מספר ההתרחשויות.
החזרות:
-  Output:Tensor1D עם אורך שווהsizeאו 2DTensorעם [batch_size,size]. הספירות או המשקלים המסוכמים עבור כל ערך בטווח [0, גודל).
| בנאים והורסים | |
|---|---|
| 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 )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
  
  
    
      [null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[]]