dòng chảy căng:: ôi:: Tuần tự hóa thưa thớt
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
#include <sparse_ops.h>
Tuần tự hóa một SparseTensor
thành một đối tượng Tensor
[3]
.
Bản tóm tắt
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- thưa_chỉ số: 2-D.
indices
củaSparseTensor
. - thưa_giá trị: 1-D. Các
values
củaSparseTensor
. - thưa thớt_shape: 1-D. Hình
shape
củaSparseTensor
.
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 | |
---|---|
SerializeSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape) | |
SerializeSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeSparse::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ấu trúc | |
---|---|
tensorflow:: ops:: SerializeSparse:: Attrs | Trình thiết lập thuộc tính tùy chọn cho SerializeSparse . |
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
Tuần tự hóa thưa thớt
SerializeSparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
Tuần tự hóa thưa thớt
SerializeSparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeSparse::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 )