tensorflow :: ops :: SerializeManySparse
#include <sparse_ops.h>
Cerita bersambung N
-minibatch SparseTensor
menjadi [N, 3]
Tensor
objek.
Ringkasan
SparseTensor
harus memiliki peringkat R
lebih besar dari 1, dan dimensi pertama dianggap sebagai dimensi minibatch. Elemen SparseTensor
harus diurutkan dalam urutan yang meningkat dari dimensi pertama ini. Objek SparseTensor
serial yang masuk ke setiap baris serialized_sparse
akan memiliki peringkat R-1
.
Minibatch ukuran N
diekstrak dari sparse_shape[0]
.
Argumen:
- scope: Objek Scope
- sparse_indices: 2-D.
indices
dari minibatchSparseTensor
. - sparse_values: 1-D.
values
-values
dari minibatchSparseTensor
. - sparse_shape: 1-D.
shape
dari minibatchSparseTensor
.
Atribut opsional (lihat Attrs
):
- out_type: The
dtype
penggunaan untuk serialisasi; jenis yang didukung adalahstring
(default) danvariant
.
Pengembalian:
-
Output
: Tensor serialized_sparse.
Pembuat dan Penghancur | |
---|---|
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) |
Structs | |
---|---|
tensorflow :: ops :: SerializeManySparse :: Attrs | Penyetel atribut opsional untuk SerializeManySparse . |
Atribut publik
operasi
Operation operation
serialized_sparse
::tensorflow::Output serialized_sparse
Fungsi publik
SerializeManySparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerializeManySparse
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 :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
OutType
Attrs OutType( DataType x )