เทนเซอร์โฟลว์:: ปฏิบัติการ:: SparseSegmentMean

#include <math_ops.h>

คำนวณค่าเฉลี่ยตามส่วนที่กระจัดกระจายของเทนเซอร์

สรุป

ดู tf.sparse.segment_sum สำหรับตัวอย่างการใช้งาน

เช่นเดียวกับ SegmentMean แต่ segment_ids สามารถมีอันดับน้อยกว่ามิติแรกของ data โดยเลือกชุดย่อยของมิติ 0 ที่ระบุโดย indices

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • ดัชนี: เทนเซอร์ 1-D มีอันดับเดียวกันกับ segment_ids
  • Segment_ids: เทนเซอร์ 1 มิติ ควรเรียงลำดับค่าและสามารถทำซ้ำได้

ผลตอบแทน:

  • Output : มีรูปร่างเหมือนกับข้อมูล ยกเว้นมิติ 0 ซึ่งมีขนาด k คือจำนวนเซ็กเมนต์

ตัวสร้างและผู้ทำลาย

SparseSegmentMean (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input indices, :: tensorflow::Input segment_ids)

คุณลักษณะสาธารณะ

operation
output

งานสาธารณะ

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

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

เอาท์พุท

::tensorflow::Output output

งานสาธารณะ

SparseSegmentMean

 SparseSegmentMean(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input data,
  ::tensorflow::Input indices,
  ::tensorflow::Input segment_ids
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const