tft_notify_controller_stop_train
接口功能
提供给MindCluster调用,通知MindIO TFT主动停止训练,并告知MindIO TFT发生故障的卡信息。
接口格式
mindio_ttp.controller_ttp.tft_notify_controller_stop_train(fault_ranks: dict, stop_type: str = "stop", timeout: int = None)
接口参数
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
fault_ranks |
必选 |
发生故障的卡信息。 |
<int key, int errorType>字典:
|
stop_type |
可选 |
停止训练的类型。 |
字符串,支持以下2种方式:
|
timeout |
可选 |
暂停训练之后等待MindCluster做下一步通知的超时时间。 |
非负整数。 |
返回值
- 0:调用成功
- 1:调用失败
父主题: API接口参考