tensorflow::ops::ParseSequenceExampleV2

#include <parsing_ops.h>

Trasforma un vettore di proto tf.io.SequenceExample (come stringhe) in tensori tipizzati.

Riepilogo

Argomentazioni:

  • ambito: un oggetto Scope
  • serializzato: uno scalare o un vettore contenente protos SequenceExample serializzati in binario.
  • debug_name: Uno scalare o un vettore contenente i nomi dei proto serializzati. Può contenere, ad esempio, il nome della chiave di tabella (descrittivo) per il proto serializzato corrispondente. Questo è 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_sparse_keys: Le chiavi previste nelle caratteristiche degli esempi associate ai valori di context_sparse.
  • context_dense_keys: Le chiavi previste nelle caratteristiche di contesto di SequenceExamples associate a valori densi.
  • context_ragged_keys: Le chiavi previste nelle caratteristiche degli esempi associate ai valori context_ragged.
  • feature_list_sparse_keys: Le chiavi previste nelle FeatureList associate ai valori sparsi.
  • feature_list_dense_keys: Le chiavi previste nelle feature_list di SequenceExamples associate a elenchi di valori densi.
  • feature_list_ragged_keys: Le chiavi previste negli elenchi di funzionalità associati ai valori irregolari.
  • feature_list_dense_missing_assumed_empty: Un vettore corrispondente 1:1 a feature_list_dense_keys, che indica quali caratteristiche potrebbero mancare negli SequenceExamples. Se la FeatureList associata è mancante, viene considerata vuota.
  • 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].

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_ragged_value_types: Tipi di dati di RaggedTensor.value per le caratteristiche del contesto irregolare.
  • context_ragged_split_types: Tipi di dati RaggedTensor.row_split per le caratteristiche del contesto irregolare.
  • 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_ragged_value_types: Tipi di dati di RaggedTensor.value per le caratteristiche irregolari di FeatureList.
  • feature_list_ragged_split_types: tipi di dati RaggedTensor.row_split per le caratteristiche irregolari di FeatureList.
  • 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:

  • OutputList indici di contesto sparsi
  • OutputList context_sparse_values
  • OutputList context_sparse_shapes
  • OutputList context_dense_values
  • OutputList context_ragged_values
  • OutputList context_ragged_row_splits
  • 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
  • OutputList feature_list_ragged_values
  • OutputList feature_list_ragged_outer_splits
  • OutputList feature_list_ragged_inner_splits

Costruttori e distruttori

ParseSequenceExampleV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::Input context_sparse_keys, :: tensorflow::Input context_dense_keys, :: tensorflow::Input context_ragged_keys, :: tensorflow::Input feature_list_sparse_keys, :: tensorflow::Input feature_list_dense_keys, :: tensorflow::Input feature_list_ragged_keys, :: tensorflow::Input feature_list_dense_missing_assumed_empty, :: tensorflow::InputList context_dense_defaults)
ParseSequenceExampleV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::Input context_sparse_keys, :: tensorflow::Input context_dense_keys, :: tensorflow::Input context_ragged_keys, :: tensorflow::Input feature_list_sparse_keys, :: tensorflow::Input feature_list_dense_keys, :: tensorflow::Input feature_list_ragged_keys, :: tensorflow::Input feature_list_dense_missing_assumed_empty, :: tensorflow::InputList context_dense_defaults, const ParseSequenceExampleV2::Attrs & attrs)

attributi pubblici

context_dense_values
context_ragged_row_splits
context_ragged_values
context_sparse_indices
context_sparse_shapes
context_sparse_values
feature_list_dense_lengths
feature_list_dense_values
feature_list_ragged_inner_splits
feature_list_ragged_outer_splits
feature_list_ragged_values
feature_list_sparse_indices
feature_list_sparse_shapes
feature_list_sparse_values
operation

Funzioni statiche pubbliche

ContextDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x)
ContextRaggedSplitTypes (const DataTypeSlice & x)
ContextRaggedValueTypes (const DataTypeSlice & x)
ContextSparseTypes (const DataTypeSlice & x)
FeatureListDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x)
FeatureListDenseTypes (const DataTypeSlice & x)
FeatureListRaggedSplitTypes (const DataTypeSlice & x)
FeatureListRaggedValueTypes (const DataTypeSlice & x)
FeatureListSparseTypes (const DataTypeSlice & x)
NcontextSparse (int64 x)
NfeatureListDense (int64 x)
NfeatureListSparse (int64 x)

Strutture

tensorflow::ops::ParseSequenceExampleV2::Attrs

Impostatori di attributi opzionali per ParseSequenceExampleV2 .

attributi pubblici

valori_contestuali_densi

::tensorflow::OutputList context_dense_values

context_ragged_row_splits

::tensorflow::OutputList context_ragged_row_splits

contest_fragti_valori

::tensorflow::OutputList context_ragged_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_ragged_inner_splits

::tensorflow::OutputList feature_list_ragged_inner_splits

feature_list_ragged_outer_splits

::tensorflow::OutputList feature_list_ragged_outer_splits

feature_list_ragged_values

::tensorflow::OutputList feature_list_ragged_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 V2

 ParseSequenceExampleV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input debug_name,
  ::tensorflow::Input context_sparse_keys,
  ::tensorflow::Input context_dense_keys,
  ::tensorflow::Input context_ragged_keys,
  ::tensorflow::Input feature_list_sparse_keys,
  ::tensorflow::Input feature_list_dense_keys,
  ::tensorflow::Input feature_list_ragged_keys,
  ::tensorflow::Input feature_list_dense_missing_assumed_empty,
  ::tensorflow::InputList context_dense_defaults
)

Esempio di analisi della sequenza V2

 ParseSequenceExampleV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input serialized,
  ::tensorflow::Input debug_name,
  ::tensorflow::Input context_sparse_keys,
  ::tensorflow::Input context_dense_keys,
  ::tensorflow::Input context_ragged_keys,
  ::tensorflow::Input feature_list_sparse_keys,
  ::tensorflow::Input feature_list_dense_keys,
  ::tensorflow::Input feature_list_ragged_keys,
  ::tensorflow::Input feature_list_dense_missing_assumed_empty,
  ::tensorflow::InputList context_dense_defaults,
  const ParseSequenceExampleV2::Attrs & attrs
)

Funzioni statiche pubbliche

ContextDenseShapes

Attrs ContextDenseShapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

ContextRaggedSplitTypes

Attrs ContextRaggedSplitTypes(
  const DataTypeSlice & x
)

ContextRaggedValueTypes

Attrs ContextRaggedValueTypes(
  const DataTypeSlice & x
)

ContextSparseTypes

Attrs ContextSparseTypes(
  const DataTypeSlice & x
)

Elenco delle caratteristicheForme dense

Attrs FeatureListDenseShapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

FeatureListDenseTypes

Attrs FeatureListDenseTypes(
  const DataTypeSlice & x
)

FeatureListRaggedSplitTypes

Attrs FeatureListRaggedSplitTypes(
  const DataTypeSlice & x
)

FeatureListRaggedValueTypes

Attrs FeatureListRaggedValueTypes(
  const DataTypeSlice & x
)

FeatureListSparseTypes

Attrs FeatureListSparseTypes(
  const DataTypeSlice & x
)

NcontextSparse

Attrs NcontextSparse(
  int64 x
)

NfeatureListDense

Attrs NfeatureListDense(
  int64 x
)

NfeatureListSparse

Attrs NfeatureListSparse(
  int64 x
)