Introduction
Compared to industry-standard operators, the computation results of Ascend-proprietary operators on the Ascend AI Processor may exhibit discrepancies:
- Model migration: When a source model (GPU-based) is migrated to the Ascend environment for training or online inference, discrepancies may arise between Ascend-proprietary operators and industry standards.
- Model conversion: During conversion, the ATC tool performs optimizations such as operator elimination, fusion, and splitting. These operations may cause divergence between Ascend-proprietary and industry-standard computation results.
- Model compatibility: For offline models converted through ATC, factors such as CANN or model version iterations, hardware upgrades, or changes in operator fusion settings may lead to accuracy degradation in the optimized model.
To assist developers in resolving operator accuracy issues, the accuracy debugging tool provides a comparison function between Ascend-proprietary and industry-standard computation results.
For details about the ATC, see the ATC Instructions.
Overall Accuracy Comparison Workflow
The overall accuracy comparison workflow is as follows:
The following flowchart describes the three supported scenarios:
- GPU vs. Ascend NPU (training): Comparison of accuracy data between the source model (GPU-based) and the model migrated to the Ascend NPU environment. For details, see GPU vs. NPU (TensorFlow 1.15 Training/Online Inference).
- GPU/CPU vs. Ascend NPU (inference): Comparison of accuracy data between the source model (GPU/CPU-based) and the NPU model after conversion. For details, see Comparison Between GPU and NPU (TensorFlow Offline Inference), Comparison Between GPU and NPU (ONNX Offline Inference), and Comparison Between GPU/CPU and NPU (Caffe Offline Inference).
- Ascend NPU vs. Ascend NPU (inference): Comparison of accuracy data between two versions of an ATC converted offline model (pre- and post-upgrade/optimization) necessitated by CANN/model iterations, hardware upgrades, or fusion setting changes. For details, see Comparison Between NPU and NPU (Offline Inference).
Figure 1 Overall accuracy comparison workflow

