def init_taskd_agent(config : dict = {}, cls = None) -> bool
Description
Initializes TaskD Agent. This API is called in user code.
Input Parameters
Parameter |
Type |
Description |
|---|---|---|
config |
dict:{str : str} |
Agent information, including the Agent and network configurations. The keys include:
|
cls |
Instance type |
This parameter is used in the PyTorch framework and is a SimpleElasticAgent instance. It is not required for other frameworks. |
Return Value
Type |
Description |
|---|---|
Bool |
Whether initialization is successful.
|
Parent topic: TaskD Agent APIs