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

#include <math_ops.h>

คำนวณผลรวมตามส่วนที่กระจัดกระจายของเมตริกซ์หารด้วย sqrt ของ N

สรุป

N คือขนาดของส่วนที่กำลังลดลง

เช่นเดียวกับ SparseSegmentSqrtN แต่อนุญาตให้มี ID ที่ขาดหายไปใน segment_ids หากรหัสหายไป เทนเซอร์ output ที่ตำแหน่งนั้นจะเป็นศูนย์

อ่าน ส่วนเกี่ยวกับการแบ่งส่วน เพื่อดูคำอธิบายของส่วนต่างๆ

ข้อโต้แย้ง:

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

ผลตอบแทน:

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

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

SparseSegmentSqrtNWithNumSegments (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

งานสาธารณะ

SparseSegmentSqrtNWithNumSegments

 SparseSegmentSqrtNWithNumSegments(
  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