เทนเซอร์โฟลว์:: ปฏิบัติการ:: SerializeManySparse
#include <sparse_ops.h> ทำให้ N -minibatch SparseTensor เป็นอนุกรมลงในวัตถุ Tensor [N, 3]
สรุป
SparseTensor ต้องมีอันดับ R มากกว่า 1 และมิติแรกจะถือเป็นมิติมินิแบทช์ องค์ประกอบของ SparseTensor จะต้องจัดเรียงตามลำดับที่เพิ่มขึ้นของมิติแรกนี้ อ็อบเจ็กต์ SparseTensor ที่ทำให้เป็นอนุกรมที่เข้าไปในแต่ละแถวของ serialized_sparse จะมีอันดับ R-1
มินิแบทช์ขนาด N ถูกแยกมาจาก sparse_shape[0]
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- sparse_indices: 2-D
indicesของมินิแบทช์SparseTensor - sparse_values: 1-D
valuesของมินิแบทช์SparseTensor - sparse_shape: 1-D
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) | |
โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: SerializeManySparse :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ SerializeManySparse |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
อนุกรม_sparse
::tensorflow::Output serialized_sparse
งานสาธารณะ
SerializeManySparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerializeManySparse
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
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
ประเภทออก
Attrs OutType( DataType x )