PyTorch and MindSpore API Mapping Table
Mapping between TensorFlow APIs and MindSpore APIs, which is provided by the community. There may be differences in parameters, inputs, outputs, logic functions, and specific scenarios. For details, see the description of each API or the difference comparison provided.
More MindSpore developers are also welcome to participate in improving the mapping content.
PyTorch 1.8.1
torch
PyTorch 1.8.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
torch.distributed
PyTorch 1.8.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.nn
PyTorch 1.8.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
torch.nn.functional
PyTorch 1.8.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Difference comparison is under development. |
torch.Tensor
PyTorch 1.8.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
The functions are consistent. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
torch.optim
PyTorch 1.8.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.utils
PyTorch 1.8.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
None |
||
PyTorch 1.5.0
torch
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
torch.autograd
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.cuda
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.distributions
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.nn
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
torch.nn.functional
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.nn.init
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.optim
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torch.Tensor
PyTorch 1.5.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
torchtext
TorchText 0.10.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
torchvision
TorchVision 0.10.0 APIs |
MindSpore APIs |
Descriptions |
---|---|---|