--status_check
Applicability
|
Product |
Supported |
|---|---|
|
|
x |
|
|
x |
|
|
√ |
|
|
√ |
|
|
√ |
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
Restrictions
When --status_check is used, the overflow/underflow detection logic is added to the *.cce operator file generated after model build. To check overflow/underflow operators, use this option together with the aclInit API during model inference. Enable dump_debug in the JSON configuration file passed to this API. For details about the API, see "aclInit".