nvflare.app_common.executors.task_script_runner module¶
- class TaskScriptRunner(custom_dir: str, script_path: str, script_args: str | None = None, redirect_print_to_log=True)[source]¶
Bases:
object
Wrapper for function given function path and args
- Parameters:
custom_dir (str) – site name
script_path (str) – script file name, such as train.py
script_args (str, Optional) – script arguments to pass in.
- logger = <Logger nvflare.app_common.executors.task_script_runner (WARNING)>¶