Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tff.framework.create_local_executor

View source

Constructs an executor to execute computations on the local machine.

tff.framework.create_local_executor(num_clients=None)

The initial temporary implementation requires that the number of clients be specified in advance. This limitation will be removed in the near future.

NOTE: This function is only available in Python 3.

Args:

  • num_clients: The number of clients. If not specified (None), then this executor is not federated (can only execute unplaced computations).

Returns:

An instance of tff.framework.Executor for single-machine use only.

Raises:

  • ValueError: If the number of clients is not one or larger.