tf.train.FeatureLists  |  TensorFlow v2.16.1 (original) (raw)

tf.train.FeatureLists

Stay organized with collections Save and categorize content based on your preferences.

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

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.train.FeatureLists

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.

Last updated 2024-04-26 UTC.