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 )