ParseSingleSequenceExample

public final class ParseSingleSequenceExample

Transforms a scalar brain.SequenceExample proto (as strings) into typed tensors.

Nested Classes

class ParseSingleSequenceExample.Options Optional attributes for ParseSingleSequenceExample

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static ParseSingleSequenceExample.Options
contextDenseShapes (List< Shape > contextDenseShapes)
List< Output <?>>
List< Output < TInt64 >>
List< Output < TInt64 >>
List< Output <?>>
static ParseSingleSequenceExample
create ( Scope scope, Operand < TString > serialized, Operand < TString > featureListDenseMissingAssumedEmpty, Iterable< Operand < TString >> contextSparseKeys, Iterable< Operand < TString >> contextDenseKeys, Iterable< Operand < TString >> featureListSparseKeys, Iterable< Operand < TString >> featureListDenseKeys, Iterable< Operand <?>> contextDenseDefaults, Operand < TString > debugName, List<Class<? extends TType >> contextSparseTypes, List<Class<? extends TType >> featureListDenseTypes, List<Class<? extends TType >> featureListSparseTypes, Options... options)
Factory method to create a class wrapping a new ParseSingleSequenceExample operation.
static ParseSingleSequenceExample.Options
featureListDenseShapes (List< Shape > featureListDenseShapes)
List< Output <?>>
List< Output < TInt64 >>
List< Output < TInt64 >>
List< Output <?>>

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "ParseSingleSequenceExample"

Public Methods

public static ParseSingleSequenceExample.Options contextDenseShapes (List< Shape > contextDenseShapes)

Parameters
contextDenseShapes 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].

public List< Output <?>> contextDenseValues ()

public List< Output < TInt64 >> contextSparseIndices ()

public List< Output < TInt64 >> contextSparseShapes ()

public List< Output <?>> contextSparseValues ()

public static ParseSingleSequenceExample create ( Scope scope, Operand < TString > serialized, Operand < TString > featureListDenseMissingAssumedEmpty, Iterable< Operand < TString >> contextSparseKeys, Iterable< Operand < TString >> contextDenseKeys, Iterable< Operand < TString >> featureListSparseKeys, Iterable< Operand < TString >> featureListDenseKeys, Iterable< Operand <?>> contextDenseDefaults, Operand < TString > debugName, List<Class<? extends TType >> contextSparseTypes, List<Class<? extends TType >> featureListDenseTypes, List<Class<? extends TType >> featureListSparseTypes, Options... options)

Factory method to create a class wrapping a new ParseSingleSequenceExample operation.

Parameters
scope current scope
serialized A scalar containing a binary serialized SequenceExample proto.
featureListDenseMissingAssumedEmpty A vector listing the FeatureList keys which may be missing from the SequenceExample. If the associated FeatureList is missing, it is treated as empty. By default, any FeatureList not listed in this vector must exist in the SequenceExample.
contextSparseKeys A list of Ncontext_sparse string Tensors (scalars). The keys expected in the Examples' features associated with context_sparse values.
contextDenseKeys A list of Ncontext_dense string Tensors (scalars). The keys expected in the SequenceExamples' context features associated with dense values.
featureListSparseKeys A list of Nfeature_list_sparse string Tensors (scalars). The keys expected in the FeatureLists associated with sparse values.
featureListDenseKeys A list of Nfeature_list_dense string Tensors (scalars). The keys expected in the SequenceExamples' feature_lists associated with lists of dense values.
contextDenseDefaults 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].
debugName A scalar containing the name of the serialized proto. 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 scalar if no name is available.
contextSparseTypes 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).
featureListSparseTypes 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).
options carries optional attributes values
Returns
  • a new instance of ParseSingleSequenceExample

public static ParseSingleSequenceExample.Options featureListDenseShapes (List< Shape > featureListDenseShapes)

Parameters
featureListDenseShapes 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().

public List< Output <?>> featureListDenseValues ()

public List< Output < TInt64 >> featureListSparseIndices ()

public List< Output < TInt64 >> featureListSparseShapes ()

public List< Output <?>> featureListSparseValues ()