Spec-Zone.ru › TensorFlow 2.9

tf.train.FeatureLists

Просмотреть исходный код на GitHub

В основном используется как часть tf.train.SequenceExample.

Просмотр псевдонимов

Псевдонимы для миграции

См. Руководство по миграции для получения более подробной информации.

tf.compat.v1.train.FeatureLists

Содержит список 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

Дочерние классы

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API