LocalConfig

class tf_encrypted.config.LocalConfig(player_names, master=None, job_name='localhost', log_device_placement=False)[source]

Configure tf-encrypted to use threads on the local CPU to simulate the different players. Intended mostly for development/debugging use.

Parameters:
  • player_names (List[str]) – List of players to be used in the session.
  • master (Optional[Union[int,str]]) – Mapping of a name to host for the master node.
  • job_name (str) – The name of the job.
  • log_device_placement (bool) – Whether or not to write device placement in logs.