tf.distribute.InputReplicationMode

Replication mode for input function.

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 separately. tf.distribute.Strategy doesn't manage any state sharing between such separate input pipelines.

PER_REPLICA <InputReplicationMode.PER_REPLICA: 'PER_REPLICA'>
PER_WORKER <InputReplicationMode.PER_WORKER: 'PER_WORKER'>