aliran tensor:: operasi:: Serialisasi Banyak Jarang
#include <sparse_ops.h> Buat serial N -minibatch SparseTensor menjadi objek Tensor [N, 3] .
Ringkasan
 SparseTensor harus memiliki peringkat R lebih besar dari 1, dan dimensi pertama diperlakukan sebagai dimensi minibatch. Elemen SparseTensor harus diurutkan berdasarkan peningkatan dimensi pertama ini. Objek SparseTensor berseri yang masuk ke setiap baris serialized_sparse akan memiliki peringkat R-1 .
 Ukuran minibatch N diekstraksi dari sparse_shape[0] .
Argumen:
- ruang lingkup: Objek Lingkup
-  sparse_indices: 2-D. indicesminibatchSparseTensor.
-  nilai_jarang: 1-D. valuesminibatchSparseTensor.
-  bentuk_jarang: 1-D. shapeminibatchSparseTensor.
 Atribut opsional (lihat Attrs ):
-  out_type: dtypeyang digunakan untuk serialisasi; tipe yang didukung adalahstring(default) danvariant.
Pengembalian:
-  Output: Tensor serialized_sparse.
| Konstruktor dan Destruktor | |
|---|---|
| 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) | 
| Atribut publik | |
|---|---|
| operation | |
| serialized_sparse | |
| Fungsi publik | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| Fungsi statis publik | |
|---|---|
| OutType (DataType x) | |
| Struktur | |
|---|---|
| tensorflow:: ops:: SerializeManySparse:: Attrs | Penyetel atribut opsional untuk SerializeManySparse . | 
Atribut publik
operasi
Operation operation
serial_sparse
::tensorflow::Output serialized_sparse
Fungsi publik
Serialisasi Banyak Jarang
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
Serialisasi Banyak Jarang
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Masukan
operator::tensorflow::Input() const
operator::tensorflow::Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Tipe Keluar
Attrs OutType( DataType x )