mindspore/docs/api/api_python/utils/mindspore.utils.stress_dete...

11 lines
533 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.utils.stress_detect(detect_type="aic")
此接口将在后续版本中废弃,请使用接口 :func:`mindspore.tools.stress_detect` 代替。
参数:
- **detect_type** (str可选) - 进行压测的类型。有两种可选:``'aic'````'hccs'``分别会对设备进行AiCore和HCCS链路压测。默认 ``'aic'``
返回:
int。返回值代表错误类型0表示正常1表示精度检测用例执行失败2表示硬件故障建议更换设备。