เทนเซอร์โฟลว์:: ปฏิบัติการ:: เบาบางหนาแน่นCwiseMul

#include <sparse_ops.h>

ส่วนประกอบจะคูณ SparseTensor ด้วย Tensor ที่มีความหนาแน่นสูง

สรุป

ตำแหน่งเอาต์พุตที่สอดคล้องกับองค์ประกอบศูนย์โดยปริยายในเทนเซอร์แบบกระจายจะเป็นศูนย์ (กล่าวคือ จะไม่ใช้พื้นที่จัดเก็บ) โดยไม่คำนึงถึงเนื้อหาของเทนเซอร์หนาแน่น (แม้ว่าจะเป็น +/-INF และ INF*0 == น่าน)

ข้อจำกัด : Op นี้ถ่ายทอดเฉพาะด้านหนาแน่นไปยังด้านเบาบางเท่านั้น แต่ไม่ใช่ทิศทางอื่น

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • sp_indices: 2-D เมทริกซ์ N x R พร้อมดัชนีของค่าที่ไม่ว่างเปล่าใน SparseTensor อาจไม่อยู่ในลำดับตามรูปแบบบัญญัติ
  • sp_values: 1-D N ค่าที่ไม่ว่างซึ่งสอดคล้องกับ sp_indices
  • sp_shape: 1-D รูปร่างของอินพุต SparseTensor
  • หนาแน่น: R -D ตัวถูกดำเนินการ เทนเซอร์ หนาแน่น

ผลตอบแทน:

  • Output : 1-D ค่า N ที่ดำเนินการอยู่

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

SparseDenseCwiseMul (const :: tensorflow::Scope & scope, :: tensorflow::Input sp_indices, :: tensorflow::Input sp_values, :: tensorflow::Input sp_shape, :: tensorflow::Input dense)

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

operation
output

งานสาธารณะ

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

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

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

Operation operation

เอาท์พุท

::tensorflow::Output output

งานสาธารณะ

เบาบางหนาแน่นCwiseMul

 SparseDenseCwiseMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sp_indices,
  ::tensorflow::Input sp_values,
  ::tensorflow::Input sp_shape,
  ::tensorflow::Input dense
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const