Tensorflow :: ops :: SerializeManySparse
#include <sparse_ops.h>
Serialisieren Sie einen N
Minibatch- SparseTensor
in ein [N, 3]
Tensor
Objekt.
Zusammenfassung
Der SparseTensor
muss einen Rang R
größer als 1 haben, und die erste Dimension wird als Minibatch-Dimension behandelt. Elemente des SparseTensor
müssen in aufsteigender Reihenfolge dieser ersten Dimension sortiert werden. Die serialisierten SparseTensor
Objekte, die in jede Zeile von serialized_sparse
gehen, haben den Rang R-1
.
Die Minibatch-Größe N
wird aus sparse_shape[0]
extrahiert.
Argumente:
- scope: Ein Scope- Objekt
- sparse_indices: 2-D. Die
indices
des MinibatchSparseTensor
. - sparse_values: 1-D. Die
values
des MinibatchSparseTensor
. - sparse_shape: 1-D. Die
shape
des MinibatchSparseTensor
.
Optionale Attribute (siehe Attrs
):
- out_type: Der für die Serialisierung zu verwendende
dtype
. Die unterstützten Typen sindstring
(Standard) undvariant
.
Kehrt zurück:
-
Output
: Der Tensor serialized_sparse.
Konstruktoren und Destruktoren | |
---|---|
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) |
Öffentliche Attribute | |
---|---|
operation | |
serialized_sparse |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
OutType (DataType x) |
Strukturen | |
---|---|
tensorflow :: ops :: SerializeManySparse :: Attrs | Optionale Attributsetzer für SerializeManySparse . |
Öffentliche Attribute
Operation
Operation operation
serialized_sparse
::tensorflow::Output serialized_sparse
Öffentliche Funktionen
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 )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
OutType
Attrs OutType( DataType x )