เทนเซอร์โฟลว์:: ปฏิบัติการ:: เบาบางBincount
#include <math_ops.h>นับจำนวนครั้งของแต่ละค่าในอาร์เรย์จำนวนเต็ม
สรุป
 ส่งออกเวกเตอร์ที่มี size ความยาวและประเภท dtype เดียวกันกับ weights หาก weights ว่างเปล่า ดัชนี i จะเก็บจำนวนครั้งที่นับค่า i ใน arr หาก weights ไม่ว่างเปล่า ดัชนี i จะจัดเก็บผลรวมของค่าใน weights ไว้ที่แต่ละดัชนี โดยที่ค่าที่สอดคล้องกันใน arr คือ i
 ค่าที่ arr นอกช่วง [0, ขนาด) จะถูกละเว้น
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
-  ดัชนี: 2D int64 Tensor
-  ค่า: 1D int Tensor
-  หนาแน่น_รูปร่าง: 1D int64 Tensor
-  ขนาด: Tensorเกลาร์ int ไม่เป็นลบ
-  น้ำหนัก: คือ int32, int64, float32 หรือ float64 Tensorที่มีรูปร่างเหมือนกับinputหรือ length-0Tensorซึ่งในกรณีนี้จะทำหน้าที่เป็นน้ำหนักทั้งหมดเท่ากับ 1
 แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):
- binary_output: บูล; ไม่ว่าเคอร์เนลควรนับลักษณะที่ปรากฏหรือจำนวนครั้งที่เกิดขึ้น
ผลตอบแทน:
-  Output: 1DTensorที่มีความยาวเท่ากับ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) | |
| โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: SparseBincount :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ SparseBincount | 
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาท์พุท
::tensorflow::Output output
งานสาธารณะ
เบาบางBincount
SparseBincount( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input dense_shape, ::tensorflow::Input size, ::tensorflow::Input weights )
เบาบางBincount
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
ฟังก์ชันคงที่สาธารณะ
BinaryOutput
Attrs BinaryOutput( bool x )