เทนเซอร์โฟลว์:: ปฏิบัติการ:: SparseSegmentMeanWithNumSegments
#include <math_ops.h>คำนวณค่าเฉลี่ยตามส่วนที่กระจัดกระจายของเทนเซอร์
สรุป
 เช่นเดียวกับ SparseSegmentMean แต่อนุญาตให้มีรหัสที่ขาดหายไปใน segment_ids หากรหัสหายไป เทนเซอร์ output ที่ตำแหน่งนั้นจะเป็นศูนย์
อ่าน ส่วนเกี่ยวกับการแบ่งส่วน เพื่อดูคำอธิบายของส่วนต่างๆ
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
-  ดัชนี: เทนเซอร์ 1-D มีอันดับเดียวกันกับ segment_ids
- Segment_ids: เทนเซอร์ 1 มิติ ควรเรียงลำดับค่าและสามารถทำซ้ำได้
- num_segments: ควรเท่ากับจำนวนรหัสส่วนที่แตกต่างกัน
ผลตอบแทน:
-  Output: มีรูปร่างเหมือนกับข้อมูล ยกเว้นมิติ 0 ซึ่งมีขนาดnum_segments
| ตัวสร้างและผู้ทำลาย | |
|---|---|
| SparseSegmentMeanWithNumSegments (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input indices, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments) | 
| คุณลักษณะสาธารณะ | |
|---|---|
| operation | |
| output | |
| งานสาธารณะ | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาท์พุท
::tensorflow::Output output
งานสาธารณะ
SparseSegmentMeanWithNumSegments
SparseSegmentMeanWithNumSegments( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids, ::tensorflow::Input num_segments )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const