tensorflow::ops::SerializeManySparse
#include <sparse_ops.h> Serialisasikan SparseTensor N -minibatch menjadi objek Tensor [N, 3] .
Ringkasan
SparseTensor harus memiliki rank R lebih besar dari 1, dan dimensi pertama diperlakukan sebagai dimensi minibatch. Elemen-elemen SparseTensor harus diurutkan dalam urutan menaik dari dimensi pertama ini. Objek SparseTensor yang diserialisasi yang masuk ke setiap baris serialized_sparse akan memiliki rank R-1 .
Ukuran minibatch N diekstrak dari sparse_shape[0] .
Argumen:
- Cakupan: Objek Cakupan
- sparse_indices: 2-D.
indicesdari minibatchSparseTensor. - sparse_values: 1-D.
valuesdari minibatchSparseTensor. - sparse_shape: 1-D.
shapeminibatchSparseTensor.
Atribut opsional (lihat Attrs ):
- out_type:
dtypeyang akan digunakan untuk serialisasi; tipe yang didukung adalahstring(default) danvariant.
Mengembalikan:
-
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 | Setter atribut opsional untuk SerializeManySparse . |
Atribut publik
operasi
Operation operation
serialisasi_jarang
::tensorflow::Output serialized_sparse
Fungsi publik
SerialisasiBanyakSparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerialisasiBanyakSparse
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::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Fungsi statis publik
OutType
Attrs OutType( DataType x )