Description
Mechanism
You can use APIs including REPORT_INPUT_ERROR() and REPORT_EVN_ERROR() to display an error code on the GUI when an exception occurs during model building, inference, or training. The common exceptions include environment errors and input errors (such as invalid command-line options, API arguments and input files, or unsupported operators, shape, and format).
Error Code Format
The error code information that is printed varies according to the scenario, use case, and fault cause. In this document, [%s] is a variable to denote the actual log. For example, the E10035 error code in this document is displayed in the following format:
E10035: The [--dynamic_batch_size], [--dynamic_image_size], or [--dynamic_dims] argument has [%s] profiles, which is less than the minimum [%s].
The following is an example of the error message displayed on the UI. The PID and timestamp are added.
E10035: [PID: xxxxxx] Timestamp The [--dynamic_batch_size], [--dynamic_image_size], or [--dynamic_dims] argument has [1] profiles, which is less than the minimum [2].
- An error code consists of six characters. The levels are ERROR (E), WARN (W), and INFO (I). Error codes 0000 to 8999 are user errors, and error codes 9000 to 9999 are internal error codes. The meaning of each field is as follows:
- In the scenario of executing asynchronous tasks, such as issuing multiple operator execution tasks continuously, multiple operators may report errors, so the error message may contain errors of multiple operators. You need to troubleshoot the problems starting from the first error-reporting operator.
- Generally, you need to contact Huawei for troubleshooting if an internal error code is returned. To obtain help, you can submit an issue in the Ascend community (https://gitee.com/ascend).
- The error code information described in this document has been completely displayed on the screen, including possible causes and solutions. Here is an example for reference only.
