--status_check
Description
Determines whether to add overflow/underflow detection logic during operator build.
If the model accuracy is not satisfactory and an operator computation overflow/underflow might occur in the model, include this option to add overflow/underflow detection logic during operator build and rebuild the model.
See Also
You are advised to use this option together with --op_debug_level. In this way, you can check whether the overflow/underflow detection logic is added to the generated .cce file. The following is a code example:
if (status_overflow[0]) {
xxxxxx
}
Argument
- 0 (default): Disables the overflow/underflow detection logic.
- 1: Enables the overflow/underflow detection logic.
Example
--status_check=1
Applicability
Restrictions
--status_check is used only when the overflow/underflow detection logic is added to the .cce operator file generated after model build. To check overflow and underflow operators, you need to use this option together with the AscendCL aclInit API during model inference. Enable dump_debug in the .json configuration file passed to this API. For details about this API, see aclInit.