API Sacnning
Single-file Analysis
Right-click on the open Python file editing screen and select “Scan Local Files”.
The following figure is an example of a scan that generates the analysis results of the use of the torch.Tensor interface in this file, including “PyTorch APIs that can be transformed”, “Probably the result of torch.Tensor API” and “PyTorch API that does not provide a direct mapping relationship at this time”.
where
“PyTorch APIs that can be transformed” means PyTorch APIs used in the Documentation can be converted to MindSpore APIs.
“Probably the result of torch.Tensor API” means APIs with the same name as torch.Tensor, which may be torch.Tensor APIs and can be converted to MindSpore APIs.
“PyTorch API that does not provide a direct mapping relationship at this time” means APIs that are PyTorch APIs or possibly torch.Tensor APIs, but don’t directly correspond to MindSpore APIs.
Multi-file Analysis
Click the MindSpore Dev Toolkit icon in the left sidebar.
Generate a project tree view of the current IDE project containing only Python files on the left.
If the Python file is selected, you can get the interface analysis results of the file.
If the file directory is selected, you can get the interface analysis results of all Python files in that directory.
The blue font parts are all clickable and will automatically open the page in the user-default browser.