Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Summary
For operator developed in DSL, some methods are provided for locating and solving accuracy problems. You can perform the following steps to solve any accuracy problem:
- Exclude problems caused by accuracy-irrelevant reasons such as incorrect comparison data, incorrect formulas, and incorrect CCE generation.
- Determine the unqualified range based on the distribution of unqualified accuracy data. You can use tools such as Excel and Octave to visualize the distribution.
- View the intermediate result, analyze the computation process, and find the root cause (such as instruction problems, overflows, and calculation failures).
- Adopt specific solutions for specific causes.
- Check whether the mathematical formula used in the simulation analysis can fit the approximation and whether the theoretical relative error meets the requirements. If the solution has accuracy problems, optimize the solution by referring to Mathematical Formula Optimization.
- If the accuracy of the solution meets the requirement theoretically, and the problem is caused by the instruction accuracy, optimize the solution by referring to Instruction Accuracy Optimization.
- For an overflow error (commonplace for functions such as
and
), use a transform formula to prevent overflow of mathematical calculation, for example,
.
- For a calculation failure, that is, the error is gradually amplified as a quantity of calculation times increases. Especially when a coefficient or the input
is excessively large, the error amplification factor will be far greater than 1, leading to divergence of the final result. This may be avoided by formula replacement or range mapping.