tf.train.FeatureLists
| Просмотреть исходный код на GitHub |
В основном используется как часть tf.train.SequenceExample.
Содержит список tf.train.Feature.
Прото tf.train.SequenceExample можно рассматривать как прототипическую реализацию следующего типа Python:
# 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
Этот прото реализует часть Dict[str, FeatureList].
| Атрибуты | |
|---|---|
feature_list | repeated FeatureListEntry feature_list |
Дочерние классы
© 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