AscendC Operator Test Case Generator

•
99
•

Generates comprehensive verification test cases and benchmarks for Huawei AscendC NPU operators based on design specifications.

This skill streamlines the Huawei Ascend NPU development workflow by automating the creation of test cases for AscendC operators. It acts as a critical link between the design phase and implementation, parsing 'design.md' files to extract operator logic, constraints, and supported data types. The skill generates a robust suite of at least 30 test cases, including typical shapes for common model scenarios and generalized shapes for boundary condition testing across 1D to 5D dimensions. By ensuring full dtype coverage and providing clear benchmarks, it prepares the operator for subsequent unit testing, precision validation, and performance analysis.

Key Features

01Automated parsing of AscendC operator design documents (design.md)
0299 GitHub stars
03Generation of comprehensive test shapes from 1D to 5D for diverse operator types
04Standardized Markdown output compatible with downstream UT and performance skills
05Boundary condition testing with specialized 'Small' and 'Large' shape pools
06Full data type (dtype) coverage verification based on operator specifications

Use Cases

01Creating a detailed test plan and benchmark after completing an operator's design document.
02Preparing large-scale test scenarios to simulate production environments like BERT or GPT models.
03Generating generalized edge-case shapes to ensure operator robustness and alignment.