LocalConfig(player_names, master=None, job_name='localhost', log_device_placement=False)¶
Configure tf-encrypted to use threads on the local CPU to simulate the different players. Intended mostly for development/debugging use.
- player_names ((str)) – List of players to be used in the session.
- master (int,str) – Optional pointer to the master node. If int, denotes the index of the master’s name in the player_names. If str, denotes the player name.
- job_name (str) – The name of the job.
- log_device_placement (bool) – Whether or not to write device placement in logs.
from_dict(params) → LocalConfig¶
Produces a LocalConfig class from a dictionary.
Parameters: params (dict) – Key-value store of constructor arguments.
get_player(name) → Player¶
Retrieve a specific
Playerobject by name.
get_tf_config() → tf.ConfigProto, or str¶
Extract the underlying
Returns the config’s list of
to_dict() → Dict¶
Writes the config to a dictionary.