Spec-Zone.ru › TensorFlow 2.4

tf.distribute.InputReplicationMode

View source on GitHub

Replication mode for input function.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.distribute.InputReplicationMode

  • PER_WORKER: The input function will be called on each worker independently, creating as many input pipelines as number of workers. Replicas will dequeue from the local Dataset on their worker. tf.distribute.Strategy doesn't manage any state sharing between such separate input pipelines.
  • PER_REPLICA: The input function will be called on each replica seperately. tf.distribute.Strategy doesn't manage any state sharing between such separate input pipelines.
Class Variables
PER_REPLICA tf.distribute.InputReplicationMode
PER_WORKER tf.distribute.InputReplicationMode

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/distribute/InputReplicationMode

Spec-Zone.ru

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