API
MindSpore provides rich interfaces for model building, training, and inference. The functions of each module interface are described below.
| Module Name | Descriptions | 
|---|---|
| Framework foundation interface. | |
| Function interface. | |
| A neural network layer for building predefined building blocks or computational units in a neural network. | |
| Functional, nn, and optimizer interfaces consistent with mainstream industry usage. | |
| Parameter initialization. | |
| Mixed-precision interface. | |
| Training interface. | |
| Auto Parallel interface. | |
| Runtime interface. | |
| Device and backend management interface. | |
| Collection communication interface. | |
| Interfaces for loading and processing various datasets. | |
| NumPy Class interface. | |
| SciPy Class interface. | |
| Multi-processing interface. | |
| Tools interface. | |
| Auxiliary interfaces such as dryrun. | |
| Experimental interface. | |
| Primitive operator. | |
| Automatic acceleration network interfaces. | |
| Parameterizable probability distributions and sampling functions. | |
| Custom rule-based model source code modification interface. | |
| Interface of device management, stream management, event management and memory management. | |
| Notes related to environment variables. | |
| API mapping relationship and difference analysis between PyTorch and MindSpore. |