nvflare.app_opt.pt.in_process_client_api_executor module

class PTInProcessClientAPIExecutor(task_script_path: str, task_script_args: str = '', task_wait_time: float | None = None, result_pull_interval: float = 0.5, log_pull_interval: float | None = None, params_transfer_type: TransferType = 'FULL', from_nvflare_converter_id: str | None = None, to_nvflare_converter_id: str | None = None, train_with_evaluation: bool = True, train_task_name: str = 'train', evaluate_task_name: str = 'validate', submit_model_task_name: str = 'submit_model', params_exchange_format='pytorch')[source]

Bases: InProcessClientAPIExecutor

Init FLComponent.

The FLComponent is the base class of all FL Components. (executors, controllers, responders, filters, aggregators, and widgets are all FLComponents)

FLComponents have the capability to handle and fire events and contain various methods for logging.