tf.data.experimental.DistributeOptions
Представляет параметры распределенной обработки данных.
tf.data.experimental.DistributeOptions()
Параметры распределения набора данных можно задать с помощью свойства experimental_distribute объекта tf.data.Options; это свойство является экземпляром tf.data.experimental.DistributeOptions.
options = tf.data.Options() options.experimental_distribute.auto_shard_policy = tf.data.experimental.AutoShardPolicy.OFF dataset = dataset.with_options(options)
| Атрибуты | |
|---|---|
auto_shard_policy | Тип используемого шардирования. Дополнительные сведения см. в разделе tf.data.experimental.AutoShardPolicy. |
num_devices | Количество устройств, подключенных к этому конвейеру ввода. Это значение автоматически задается с помощью MultiDeviceIterator. |
Методы
__eq__
__eq__(
other
)
Возвращает self==value.
__ne__
__ne__(
other
)
Возвращает self!=value.
© 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/data/experimental/DistributeOptions