The msOpST tool is used to preliminarily test operator functions after operator development. It can be used to analyze and optimize operator performance more efficiently, improving the operator execution efficiency and reducing the development cost.
This sample generates an .om file of a single-operator based on the AscendCL API process and executes the file to verify the operator execution result.
- Prepare an Atlas A2 training or inference server and install the required driver and firmware. For details, see "Installing the NPU Driver and Firmware" in .
- Install the CANN Toolkit and ops operator package of the required version and configure CANN environment variables. For details, see .
- To use MindStudio Insight for viewing, install the MindStudio Insight software package separately. For download links, see "Installation and Uninstallation" in .
[object Object]
ST cases generation.
Perform ST.
Set environment variables based on the CANN package path.
[object Object]Perform ST and save the test result to a specified path.
[object Object][object Object]
After the test is successful, the test result is output to the
[object Object]file in the[object Object]directory. For details, see the table "Fields in the st_report.json report" in "Operator Test (msOpST) > "Usage Example" > "Generating/Executing Test Cases" in .