mindspore/docs/api/api_python/tools/mindspore.tools.stress_dete...

11 lines
660 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.. py:function:: mindspore.tools.stress_detect(detect_type="aic")
用于检测硬件精度或链路间的通讯是否有故障。常见使用场景为在每个step或者保存checkpoint的时候另起线程或通过Callback函数调用该接口查看硬件是否有故障会影响精度。
参数:
- **detect_type** (str可选) - 进行压测的类型。有两种可选:``'aic'````'hccs'``分别会对设备进行AiCore和HCCS链路压测。默认 ``'aic'``
返回:
int。返回值代表错误类型0表示正常1表示精度检测用例执行失败2表示硬件故障建议更换设备。