tf.train.FeatureList
В основном используется как часть 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
Этот протокол реализует часть List[Feature].
| Атрибуты | |
|---|---|
feature | repeated Feature feature |
© 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/api_docs/python/tf/train/FeatureList