Tensorflow :: ops :: ParseSequenceExample
#include <parsing_ops.h>
Transformiert einen Vektor des Gehirns. SequenzBeispielprotos (als Zeichenfolgen) in typisierte Tensoren.
Zusammenfassung
Argumente:
- scope: Ein Scope- Objekt
- serialisiert: Ein Vektor, der binär serialisierte SequenceExample-Protos enthält.
- debug_name: Ein Vektor, der die Namen der serialisierten Protos enthält. Kann beispielsweise den Namen des Tabellenschlüssels (beschreibend) für das entsprechende serialisierte Proto enthalten. Dies ist nur für Debugging-Zwecke nützlich, und das Vorhandensein von Werten hat hier keine Auswirkung auf die Ausgabe. Kann auch ein leerer Vektor sein, wenn kein Name verfügbar ist.
- context_dense_defaults: Eine Liste von Ncontext_dense-Tensoren (einige sind möglicherweise leer). context_dense_defaults [j] liefert Standardwerte, wenn in der Kontextzuordnung des SequenceExample context_dense_key [j] fehlt. Wenn für context_dense_defaults [j] ein leerer Tensor bereitgestellt wird, ist das Feature context_dense_keys [j] erforderlich. Der Eingabetyp wird aus context_dense_defaults [j] abgeleitet, auch wenn er leer ist. Wenn context_dense_defaults [j] nicht leer ist, muss seine Form mit context_dense_shapes [j] übereinstimmen.
- feature_list_dense_missing_assumed_empty: Ein Vektor, der die FeatureList-Schlüssel auflistet, die möglicherweise in den SequenceExamples fehlen. Wenn die zugehörige FeatureList fehlt, wird sie als leer behandelt. Standardmäßig muss jede FeatureList, die nicht in diesem Vektor aufgeführt ist, in den SequenceExamples vorhanden sein.
- context_sparse_keys: Eine Liste von Ncontext_sparse-String-Tensoren (Skalaren). Die Schlüssel, die in den Funktionen der Beispiele erwartet werden, die mit context_sparse-Werten verknüpft sind.
- context_dense_keys: Eine Liste von Ncontext_dense-String-Tensoren (Skalaren). Die Schlüssel, die in den Kontextfunktionen der SequenceExamples erwartet werden, die mit dichten Werten verknüpft sind.
- feature_list_sparse_keys: Eine Liste von Nfeature_list_sparse-String-Tensoren (Skalaren). Die in den FeatureLists erwarteten Schlüssel, die mit spärlichen Werten verknüpft sind.
- feature_list_dense_keys: Eine Liste von Nfeature_list_dense-String-Tensoren (Skalaren). Die Schlüssel, die in den Feature-Listen der SequenceExamples erwartet werden, die Listen mit dichten Werten zugeordnet sind.
Optionale Attribute (siehe Attrs
):
- context_sparse_types: Eine Liste von Ncontext_sparse-Typen; die Datentypen von Daten in jedem Kontext Feature in context_sparse_keys. Derzeit unterstützt das ParseSingleSequenceExample DT_FLOAT (FloatList), DT_INT64 (Int64List) und DT_STRING (BytesList).
- context_dense_shapes: Eine Liste von Ncontext_dense-Formen; die Formen der Daten in jedem Kontext Feature in context_dense_keys. Die Anzahl der Elemente im Feature, die context_dense_key [j] entsprechen, muss immer gleich context_dense_shapes [j] .NumEntries () sein. Die Form von context_dense_values [j] stimmt mit context_dense_shapes [j] überein.
- feature_list_sparse_types: Eine Liste von Nfeature_list_sparse-Typen; Die Datentypen der Daten in jeder FeatureList, die in feature_list_sparse_keys angegeben sind. Derzeit unterstützt das ParseSingleSequenceExample DT_FLOAT (FloatList), DT_INT64 (Int64List) und DT_STRING (BytesList).
- feature_list_dense_shapes: Eine Liste von Nfeature_list_dense-Formen; die Formen der Daten in jeder FeatureList, die in feature_list_dense_keys angegeben sind. Die Form jedes Features in der FeatureList, das feature_list_dense_key [j] entspricht, muss immer mit feature_list_dense_shapes [j] .NumEntries () übereinstimmen.
Kehrt zurück:
-
OutputList
context_sparse_indices -
OutputList
context_sparse_values -
OutputList
context_sparse_shapes -
OutputList
context_dense_values -
OutputList
feature_list_sparse_indices -
OutputList
feature_list_sparse_values -
OutputList
feature_list_sparse_shapes -
OutputList
feature_list_dense_values -
OutputList
feature_list_dense_lengths
Konstruktoren und Destruktoren | |
---|---|
ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys) | |
ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys, const ParseSequenceExample::Attrs & attrs) |
Öffentliche statische Funktionen | |
---|---|
ContextDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
ContextSparseTypes (const DataTypeSlice & x) | |
FeatureListDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
FeatureListDenseTypes (const DataTypeSlice & x) | |
FeatureListSparseTypes (const DataTypeSlice & x) | |
NcontextDense (int64 x) | |
NcontextSparse (int64 x) | |
NfeatureListDense (int64 x) | |
NfeatureListSparse (int64 x) |
Strukturen | |
---|---|
tensorflow :: ops :: ParseSequenceExample :: Attrs | Optionale Attributsetzer für ParseSequenceExample . |
Öffentliche Attribute
context_dense_values
::tensorflow::OutputList context_dense_values
context_sparse_indices
::tensorflow::OutputList context_sparse_indices
context_sparse_shapes
::tensorflow::OutputList context_sparse_shapes
context_sparse_values
::tensorflow::OutputList context_sparse_values
feature_list_dense_lengths
::tensorflow::OutputList feature_list_dense_lengths
feature_list_dense_values
::tensorflow::OutputList feature_list_dense_values
feature_list_sparse_indices
::tensorflow::OutputList feature_list_sparse_indices
feature_list_sparse_shapes
::tensorflow::OutputList feature_list_sparse_shapes
feature_list_sparse_values
::tensorflow::OutputList feature_list_sparse_values
Operation
Operation operation
Öffentliche Funktionen
ParseSequenceExample
ParseSequenceExample( const ::tensorflow::Scope & scope, ::tensorflow::Input serialized, ::tensorflow::Input debug_name, ::tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys )
ParseSequenceExample
ParseSequenceExample( const ::tensorflow::Scope & scope, ::tensorflow::Input serialized, ::tensorflow::Input debug_name, ::tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys, const ParseSequenceExample::Attrs & attrs )
Öffentliche statische Funktionen
ContextDenseShapes
Attrs ContextDenseShapes( const gtl::ArraySlice< PartialTensorShape > & x )
ContextSparseTypes
Attrs ContextSparseTypes( const DataTypeSlice & x )
FeatureListDenseShapes
Attrs FeatureListDenseShapes( const gtl::ArraySlice< PartialTensorShape > & x )
FeatureListDenseTypes
Attrs FeatureListDenseTypes( const DataTypeSlice & x )
FeatureListSparseTypes
Attrs FeatureListSparseTypes( const DataTypeSlice & x )
NcontextDense
Attrs NcontextDense( int64 x )
NcontextSparse
Attrs NcontextSparse( int64 x )
NfeatureListDense
Attrs NfeatureListDense( int64 x )
NfeatureListSparse
Attrs NfeatureListSparse( int64 x )