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

#include <sparse_ops.h>

เพิ่ม SparseTensor และ Tensor ที่มีความหนาแน่นสูง ทำให้เกิด Tensor ที่มีความหนาแน่น

สรุป

Op นี้ไม่จำเป็นต้องเรียง a_indices ตามลำดับพจนานุกรมมาตรฐาน

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • a_ดัชนี: 2-D indices ของ SparseTensor ที่มีรูปร่าง [nnz, ndims]
  • a_values: 1-D values ของ SparseTensor ที่มีรูปร่าง [nnz]
  • a_รูปร่าง: 1-D shape ของ SparseTensor ที่มีรูปร่าง [ndims]
  • b: ndims -D เทนเซอร์ ด้วยรูปทรง a_shape

ผลตอบแทน:

  • Output : เทนเซอร์เอาท์พุต

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

SparseTensorDenseAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b)

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

operation
output

งานสาธารณะ

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

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

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

Operation operation

เอาท์พุท

::tensorflow::Output output

งานสาธารณะ

เบาบางเทนเซอร์หนาแน่นเพิ่ม

 SparseTensorDenseAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const