Overview

MindStudio contains multiple tools, such as msKPP, msOpGen, msOpST, msSanitizer, msDebug, and msProf. This document uses an example to describe the workflow of using MindStudio.

The sample uses the single-operator API call mode as an example to describe how to use the operator development tools to design an operator, create an operator project, test the operator function, detect operator exceptions, debug the operator, and tune the performance.

Environment Setup

  • Run the npu-smi info command on the server where the Ascend AI Processor is installed to obtain the Chip Name information. The actual value is the value of AscendChip Name. For example, if the value of Chip Name is xxxyy, the actual value is Ascendxxxyy. If Ascendxxxyy is the code sample path, set Ascendxxxyy.
  • If you need the instruction proportion pie chart (instruction_cycle_consumption.html), install the third-party Python library plotly as it is a dependency for generating the pie chart.
    pip3 install plotly