tensorflow / 2.9.1 / train / featurelists.html /

tf.train.FeatureLists

Mainly used as part of a tf.train.SequenceExample.

Contains a list of tf.train.Features.

The tf.train.SequenceExample proto can be thought of as a proto implementation of the following python type:

# tf.train.Feature
Feature = Union[List[bytes],
                List[int64],
                List[float]]

# tf.train.FeatureList
FeatureList = List[Feature]

# tf.train.FeatureLists
FeatureLists = Dict[str, FeatureList]

class SequenceExample(typing.NamedTuple):
  context: Dict[str, Feature]
  feature_lists: FeatureLists

This proto implements the Dict[str, FeatureList] portion.

Attributes
feature_list repeated FeatureListEntry feature_list

Child Classes

class FeatureListEntry

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/train/FeatureLists