tensorflow::ops::SerializeSparse
#include <sparse_ops.h> Chuyển đổi SparseTensor thành một đối tượng Tensor [3] .
Bản tóm tắt
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- sparse_indices: 2 chiều. Các
indicescủaSparseTensor. - sparse_values: 1 chiều. Các
valuescủaSparseTensor. - sparse_shape: 1 chiều. Hình
shapecủaSparseTensor.
Các thuộc tính tùy chọn (xem Attrs ):
- out_type:
dtypeđược sử dụng để tuần tự hóa; các kiểu được hỗ trợ làstring(mặc định) vàvariant.
Trả về:
-
Output: Tensor serialized_sparse.
Hàm khởi 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ác hàm tĩnh công khai | |
|---|---|
OutType (DataType x) | |
Cấu trúc | |
|---|---|
| tensorflow::ops::SerializeSparse::Attrs | Các phương thức 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
SerializeSparse
SerializeSparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerializeSparse
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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Các hàm tĩnh công khai
OutType
Attrs OutType( DataType x )