mindspore/docs/api/api_python/tools/mindspore.tools.sdc_detect.rst

17 lines
752 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.sdc_detect_start()
开启静默数据错误检测。开启后会对当前设备正反向计算中MatMul的输入输出进行校验因此执行时间会增加校验耗时占比随矩阵形状增大而减小。
对于单个4096大小的MatMul计算开启后性能下降约100%对于Llama2-7B模型数据并行为4流水线并行为2解码器使用qkv融合和ffn融合开启后性能下降约90%。
.. py:function:: mindspore.tools.sdc_detect_stop()
关闭静默数据错误检测。
.. py:function:: mindspore.tools.get_sdc_detect_result()
获取静默数据错误检测结果。
返回:
bool表示在检测开启后是否发生静默数据错误。