nvflare.app_opt.pt.multi_process_executor module

class PTMultiProcessExecutor(executor_id=None, num_of_processes=1, components=None)[source]

Bases: MultiProcessExecutor

Manage the multi-process execution life cycle.

Parameters:
  • executor_id – executor component ID

  • num_of_processes – number of processes to create

  • components – a dictionary for component classes to their arguments

get_multi_process_command() str[source]

Provide the command for starting multi-process execution.

Returns:

multi-process starting command