tensorflow::ops::SerializeManySparse

#include <sparse_ops.h>

แปลง SparseTensor ที่มีมินิแบทช์ N ตัว ให้เป็นออบเจ็กต์ Tensor ขนาด [N, 3]

สรุป

SparseTensor ต้องมีอันดับ R มากกว่า 1 และมิติแรกจะถูกใช้เป็นมิติของมินิแบทช์ องค์ประกอบของ SparseTensor ต้องเรียงลำดับจากน้อยไปมากตามมิติแรกนี้ อ็อบเจ็กต์ SparseTensor ที่ถูกทำให้เป็นอนุกรมซึ่งจะถูกจัดเก็บลงในแต่ละแถวของ serialized_sparse จะมีอันดับ R-1

ขนาดมินิแบทช์ N จะถูกดึงมาจาก sparse_shape[0]

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • sparse_indices: 2 มิติ indices ของมินิแบทช์ SparseTensor
  • sparse_values: 1 มิติ values ของ SparseTensor ในมินิแบทช์
  • sparse_shape: 1 มิติ shape ของ SparseTensor ในมินิแบทช์

คุณลักษณะเสริม (ดูที่ Attrs ):

  • out_type: dtype ที่จะใช้สำหรับการแปลงเป็นสตริง ชนิดข้อมูลที่รองรับคือ string (ค่าเริ่มต้น) และ variant

การส่งคืนสินค้า:

  • Output : เทนเซอร์ serialized_sparse

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

SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs)

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

operation
serialized_sparse

หน้าที่สาธารณะ

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

ฟังก์ชันคงที่สาธารณะ

OutType (DataType x)

โครงสร้าง

tensorflow::ops::SerializeManySparse::Attrs

ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ SerializeManySparse

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

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

Operation operation

ซีเรียลไลซ์_สปาร์ส

::tensorflow::Output serialized_sparse

หน้าที่สาธารณะ

ซีเรียลไลซ์หลายสปาร์ส

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

ซีเรียลไลซ์หลายสปาร์ส

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const SerializeManySparse::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

ประเภทเอาต์พุต

Attrs OutType(
  DataType x
)