dòng chảy căng:: ôi:: SerializeManyThưa thớt
#include <sparse_ops.h> Tuần tự hóa một N -minibatch SparseTensor thành một đối tượng Tensor [N, 3] .
Bản tóm tắt
 SparseTensor phải có thứ hạng R lớn hơn 1 và thứ nguyên đầu tiên được coi là thứ nguyên minibatch. Các phần tử của SparseTensor phải được sắp xếp theo thứ tự tăng dần của chiều thứ nhất này. Các đối tượng SparseTensor được tuần tự hóa đi vào mỗi hàng của serialized_sparse sẽ có thứ hạng R-1 .
 Kích thước minibatch N được trích xuất từ sparse_shape[0] .
Lập luận:
- phạm vi: Một đối tượng Phạm vi
-  thưa_chỉ số: 2-D. indicescủa minibatchSparseTensor.
-  thưa_giá trị: 1-D. Các valuescủa minibatchSparseTensor.
-  thưa thớt_shape: 1-D. Hình shapecủa minibatchSparseTensor.
 Thuộc tính tùy chọn (xem Attrs ):
-  out_type: dtypeđược sử dụng để tuần tự hóa; các loại được hỗ trợ làstring(mặc định) vàvariant.
Trả về:
-  Output: Tenxơ serialized_sparse.
| Hàm tạo và hàm hủy | |
|---|---|
| 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) | 
| Thuộc tính công khai | |
|---|---|
| operation | |
| serialized_sparse | |
| Chức năng công cộng | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| Các hàm tĩnh công khai | |
|---|---|
| OutType (DataType x) | |
| Cấu trúc | |
|---|---|
| tensorflow:: ops:: SerializeManySparse:: Attrs | Trình thiết lập thuộc tính tùy chọn cho SerializeManySparse . | 
Thuộc tính công khai
hoạt động
Operation operation
serialized_sparse
::tensorflow::Output serialized_sparse
Chức năng công cộng
SerializeManyThưa thớt
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerializeManyThưa thớt
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs )
nút
::tensorflow::Node * node() const
toán tử::tenorflow::Đầu vào
operator::tensorflow::Input() const
toán tử::tenorflow::Đầu ra
operator::tensorflow::Output() const
Các hàm tĩnh công khai
Loại ra
Attrs OutType( DataType x )