tff.learning.LoopImplementation

An enum to specify which implementation of the training loop to use.

DATASET_ITERATOR A training loop that uses Dataset iterator ops. This is required when running on hosts with multiple GPUs to effectively leverage all GPUs on the host.
DATASET_REDUCE A training loop that uses the DatasetReduce op. This is required when running on hosts with TPUs to allow the MLIR Bridge to compile the reduction function to XLA HLO for TPUs.

DATASET_ITERATOR <LoopImplementation.DATASET_ITERATOR: 1>
DATASET_REDUCE <LoopImplementation.DATASET_REDUCE: 2>