tensorflow::ops::ParseSequenceExampleV2

#include <parsing_ops.h>

Transforms a vector of tf.io.SequenceExample protos (as strings) into typed tensors.

Summary

Arguments:

  • scope: A Scope object
  • serialized: A scalar or vector containing binary serialized SequenceExample protos.
  • debug_name: A scalar or vector containing the names of the serialized protos. May contain, for example, table key (descriptive) name for the corresponding serialized proto. This is purely useful for debugging purposes, and the presence of values here has no effect on the output. May also be an empty vector if no name is available.
  • context_sparse_keys: The keys expected in the Examples' features associated with context_sparse values.
  • context_dense_keys: The keys expected in the SequenceExamples' context features associated with dense values.
  • context_ragged_keys: The keys expected in the Examples' features associated with context_ragged values.
  • feature_list_sparse_keys: The keys expected in the FeatureLists associated with sparse values.
  • feature_list_dense_keys: The keys expected in the SequenceExamples' feature_lists associated with lists of dense values.
  • feature_list_ragged_keys: The keys expected in the FeatureLists associated with ragged values.
  • feature_list_dense_missing_assumed_empty: A vector corresponding 1:1 with feature_list_dense_keys, indicating which features may be missing from the SequenceExamples. If the associated FeatureList is missing, it is treated as empty.
  • context_dense_defaults: A list of Ncontext_dense Tensors (some may be empty). context_dense_defaults[j] provides default values when the SequenceExample's context map lacks context_dense_key[j]. If an empty Tensor is provided for context_dense_defaults[j], then the Feature context_dense_keys[j] is required. The input type is inferred from context_dense_defaults[j], even when it's empty. If context_dense_defaults[j] is not empty, its shape must match context_dense_shapes[j].

Optional attributes (see Attrs):

  • context_sparse_types: A list of Ncontext_sparse types; the data types of data in each context Feature given in context_sparse_keys. Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), DT_INT64 (Int64List), and DT_STRING (BytesList).
  • context_ragged_value_types: RaggedTensor.value dtypes for the ragged context features.
  • context_ragged_split_types: RaggedTensor.row_split dtypes for the ragged context features.
  • context_dense_shapes: A list of Ncontext_dense shapes; the shapes of data in each context Feature given in context_dense_keys. The number of elements in the Feature corresponding to context_dense_key[j] must always equal context_dense_shapes[j].NumEntries(). The shape of context_dense_values[j] will match context_dense_shapes[j].
  • feature_list_sparse_types: A list of Nfeature_list_sparse types; the data types of data in each FeatureList given in feature_list_sparse_keys. Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), DT_INT64 (Int64List), and DT_STRING (BytesList).
  • feature_list_ragged_value_types: RaggedTensor.value dtypes for the ragged FeatureList features.
  • feature_list_ragged_split_types: RaggedTensor.row_split dtypes for the ragged FeatureList features.
  • feature_list_dense_shapes: A list of Nfeature_list_dense shapes; the shapes of data in each FeatureList given in feature_list_dense_keys. The shape of each Feature in the FeatureList corresponding to feature_list_dense_key[j] must always equal feature_list_dense_shapes[j].NumEntries().

Returns:

  • OutputList context_sparse_indices
  • 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

Constructors and Destructors

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)

Public attributes

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

Public static functions

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)

Structs

tensorflow::ops::ParseSequenceExampleV2::Attrs

Optional attribute setters for ParseSequenceExampleV2.

Public attributes

context_dense_values

::tensorflow::OutputList context_dense_values

context_ragged_row_splits

::tensorflow::OutputList context_ragged_row_splits

context_ragged_values

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

operation

Operation operation

Public functions

ParseSequenceExampleV2

 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

 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
)

Public static functions

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
)

FeatureListDenseShapes

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
)