Overflow/Underflow Operator Data Collection and Analysis
Prerequisite
To use the ATC tool to convert a model, ensure that the --status_check parameter has been added to the conversion command and set to 1, indicating that the overflow/underflow detection logic is added during operator compilation.
For details about the ATC tool and its parameters, see ATC Instructions.
Collecting Overflow/Underflow Operator Information
When the aclInit API is called to initialize AscendCL, the dump configuration of an overflow/underflow operator is added to the JSON configuration file.
{
"dump":{
"dump_path":"output",
"dump_debug":"on"
}
}
If dump_path is set to a relative path, you can view the exported data files in {dump_path} under the directory of app executable files. For each overflow/underflow operator, two data files are exported:
- Dump file of the overflow/underflow operator (the file name starts with {op_type}). You can parse the file to obtain the operator that encounters an overflow/underflow error.
- Overflow/Underflow operator data file (the file name starts with Opdebug). You can parse the file to obtain the overflow/underflow information, including the model where the overflow/underflow operator is located and the status register of the AI Core.
For details about how to parse the preceding two types of files, see the Overflow/Underflow Operator Data Collection and Analysis section in Accuracy Debugging Tool Guide.