tensorflow::ops::ParseSequenceExample
#include <parsing_ops.h>Trasforma un vettore di protos brain.SequenceExample (come stringhe) in tensori tipizzati.
Riepilogo
Argomentazioni:
- ambito: un oggetto Scope
- serializzato: un vettore contenente prototipi SequenceExample serializzati in binario.
- debug_name: Un vettore contenente i nomi dei proto serializzati. Può contenere, ad esempio, il nome della chiave di tabella (descrittivo) per il proto serializzato corrispondente. È utile esclusivamente a scopo di debug e la presenza di valori qui non ha alcun effetto sull'output. Può anche essere un vettore vuoto se non è disponibile alcun nome.
- context_dense_defaults: Un elenco di tensori Ncontext_dense (alcuni potrebbero essere vuoti). context_dense_defaults[j] fornisce valori predefiniti quando la mappa di contesto di SequenceExample non contiene context_dense_key[j]. Se viene fornito un tensore vuoto per context_dense_defaults[j], è necessario il Feature context_dense_keys[j]. Il tipo di input viene dedotto da context_dense_defaults[j], anche quando è vuoto. Se context_dense_defaults[j] non è vuoto, la sua forma deve corrispondere a context_dense_shapes[j].
- feature_list_dense_missing_assumed_empty: Un vettore che elenca le chiavi FeatureList che potrebbero mancare in SequenceExamples. Se la FeatureList associata è mancante, viene considerata vuota. Per impostazione predefinita, qualsiasi FeatureList non elencata in questo vettore deve esistere in SequenceExamples.
- context_sparse_keys: Un elenco di tensori stringa Ncontext_sparse (scalari). Le chiavi previste nelle caratteristiche degli esempi associate ai valori di context_sparse.
- context_dense_keys: Un elenco di tensori stringa Ncontext_dense (scalari). Le chiavi previste nelle caratteristiche di contesto di SequenceExamples associate a valori densi.
- feature_list_sparse_keys: Un elenco di Nfeature_list_sparse string tensori (scalari). Le chiavi previste nelle FeatureList associate ai valori sparsi.
- feature_list_dense_keys: Un elenco di Nfeature_list_dense string tensori (scalari). Le chiavi previste negli elenchi di feature_list di SequenceExamples associati agli elenchi di valori densi.
Attributi opzionali (vedere Attrs ):
- context_sparse_types: Un elenco di tipi Ncontext_sparse; i tipi di dati dei dati in ogni contesto Feature specificato in context_sparse_keys. Attualmente ParseSingleSequenceExample supporta DT_FLOAT (FloatList), DT_INT64 (Int64List) e DT_STRING (BytesList).
- context_dense_shapes: Un elenco di forme Ncontext_dense; le forme dei dati in ogni Feature di contesto specificata in context_dense_keys. Il numero di elementi nella Feature corrispondente a context_dense_key[j] deve essere sempre uguale a context_dense_shapes[j].NumEntries(). La forma di context_dense_values[j] corrisponderà a context_dense_shapes[j].
- feature_list_sparse_types: Un elenco di Nfeature_list_sparse tipi; i tipi di dati dei dati in ogni FeatureList specificati in feature_list_sparse_keys. Attualmente ParseSingleSequenceExample supporta DT_FLOAT (FloatList), DT_INT64 (Int64List) e DT_STRING (BytesList).
- feature_list_dense_shapes: Un elenco di Nfeature_list_dense forme; le forme dei dati in ogni FeatureList specificate in feature_list_dense_keys. La forma di ogni Feature nella FeatureList corrispondente a feature_list_dense_key[j] deve essere sempre uguale a feature_list_dense_shapes[j].NumEntries().
Resi:
-
OutputListindici di contesto sparsi -
OutputListcontext_sparse_values -
OutputListcontext_sparse_shapes -
OutputListcontext_dense_values -
OutputListfeature_list_sparse_indices -
OutputListfeature_list_sparse_values -
OutputListfeature_list_sparse_shapes -
OutputListfeature_list_dense_values -
OutputListfeature_list_dense_lengths
Costruttori e distruttori | |
|---|---|
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) |
Funzioni statiche pubbliche | |
|---|---|
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) | |
Strutture | |
|---|---|
| tensorflow::ops::ParseSequenceExample::Attrs | Impostatori di attributi opzionali per ParseSequenceExample . |
attributi pubblici
valori_contestuali_densi
::tensorflow::OutputList context_dense_values
indici di contesto sparsi
::tensorflow::OutputList context_sparse_indices
forme sparse di contesto
::tensorflow::OutputList context_sparse_shapes
contest_sparsi_valori
::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
operazione
Operation operation
Funzioni pubbliche
Esempio di analisi della sequenza
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 )
Esempio di analisi della sequenza
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 )
Funzioni statiche pubbliche
ContextDenseShapes
Attrs ContextDenseShapes( const gtl::ArraySlice< PartialTensorShape > & x )
ContextSparseTypes
Attrs ContextSparseTypes( const DataTypeSlice & x )
Elenco delle caratteristicheForme dense
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 )