diff --git a/docs/mindspore/source_en/note/api_mapping/pytorch_api_mapping.md b/docs/mindspore/source_en/note/api_mapping/pytorch_api_mapping.md index cd1d8edaef615c6dfd5fb32d23167ddec14567c6..563b79515c6d869c4c34573a1017751f432f068b 100644 --- a/docs/mindspore/source_en/note/api_mapping/pytorch_api_mapping.md +++ b/docs/mindspore/source_en/note/api_mapping/pytorch_api_mapping.md @@ -25,9 +25,9 @@ The API mapping is also consistent in the following exception scenarios: **Exception Scenario 4**: MindSpore sets the default value of the parameters related to the PyTorch overloading mechanism in the API to None, and the corresponding parameters of the PyTorch counterpart API have no default value. The following is an example of the exception scenario 4. -In PyTorch 1.8.1, torch.argmax has two API overloads in the form of torch.argmax(input) and torch.argmax(input, dim, keepdim=False), respectively, where torch.argmax(input) returns the index of the maximum value element in the input Tensor, and torch.argmax(input, dim, keepdim=False) returns the index of the maximum value of the input Tensor on the specified axis. +In PyTorch 2.1, torch.argmax has two API overloads in the form of torch.argmax(input) and torch.argmax(input, dim, keepdim=False), respectively, where torch.argmax(input) returns the index of the maximum value element in the input Tensor, and torch.argmax(input, dim, keepdim=False) returns the index of the maximum value of the input Tensor on the specified axis. -mindspore.ops.argmax has only one API form, namely mindspore.ops.argmax(input, dim=None, keepdim=False), but mindspore.ops.argmax(input) and torch.argmax(input) have the same function. mindspore.ops.argmax(input, dim, keepdim) and torch.argmax(input, dim, keepdim)have the same function. Compared to torch.argmax, the default value of mindspore.ops.argmax parameter dim is set to None only to adapt the two API overload forms of torch.argmax, so the exception scenario 4 is also considered to be consistent API mapping. +mindspore.mint.argmax has only one API form, namely mindspore.mint.argmax(input, dim=None, keepdim=False), but mindspore.mint.argmax(input) and torch.argmax(input) have the same function. mindspore.mint.argmax(input, dim, keepdim) and torch.argmax(input, dim, keepdim)have the same function. Compared to torch.argmax, the default value of mindspore.ops.argmax parameter dim is set to None only to adapt the two API overload forms of torch.argmax, so the exception scenario 4 is also considered to be consistent API mapping. ## General Difference Parameter Table @@ -42,870 +42,441 @@ Because of the framework mechanism, MindSpore does not provide the following par | pin_memory | Indicates whether to use locking page memory |Not supported in MindSpore.| | memory_format | Indicates the memory format of the Tensor |Not supported in MindSpore.| | stable | Indicates whether the sorting is stable |Generally used in the API of Sorting algorithm, not supported in MindSpore.| -| inplace | Indicates that the value of a variable is modified directly without changing the memory address of the variable |MindSpore currently provides some inplace APIs, such as `assign_add`.| | sparse_grad | Indicates whether to perform sparsification on the gradient |Not supported in MindSpore.| | size_average | The deprecated parameter in PyTorch |The `reduction` parameter can be used instead.| | reduce | The deprecated parameter in PyTorch |The `reduction` parameter can be used instead.| ## torch -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.abs](https://pytorch.org/docs/1.8.1/generated/torch.abs.html) | [mindspore.ops.abs](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.abs.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.absolute](https://pytorch.org/docs/1.8.1/generated/torch.absolute.html) | [mindspore.ops.absolute](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.absolute.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.acos](https://pytorch.org/docs/1.8.1/generated/torch.acos.html) | [mindspore.ops.acos](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.acos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.acosh](https://pytorch.org/docs/1.8.1/generated/torch.acosh.html)| [mindspore.ops.acosh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.acosh.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.add](https://pytorch.org/docs/1.8.1/generated/torch.add.html)| [mindspore.ops.add](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.add.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.addbmm](https://pytorch.org/docs/1.8.1/generated/torch.addbmm.html) | [mindspore.ops.addbmm](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.addbmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.addcdiv](https://pytorch.org/docs/1.8.1/generated/torch.addcdiv.html)| [mindspore.ops.addcdiv](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.addcdiv.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.addcmul](https://pytorch.org/docs/1.8.1/generated/torch.addcmul.html)| [mindspore.ops.addcmul](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.addcmul.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.addmm](https://pytorch.org/docs/1.8.1/generated/torch.addmm.html) | [mindspore.ops.addmm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.addmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.addmv](https://pytorch.org/docs/1.8.1/generated/torch.addmv.html) | [mindspore.ops.addmv](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.addmv.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.addr](https://pytorch.org/docs/1.8.1/generated/torch.addr.html) | [mindspore.ops.addr](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.addr.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.all](https://pytorch.org/docs/1.8.1/generated/torch.all.html#torch.all) | [mindspore.ops.all](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.all.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/all.html) | -| [torch.amax](https://pytorch.org/docs/1.8.1/generated/torch.amax.html#torch.amax) | [mindspore.ops.amax](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.amax.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/amax.html) | -| [torch.amin](https://pytorch.org/docs/1.8.1/generated/torch.amin.html#torch.amin) | [mindspore.ops.amin](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.amin.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/amin.html) | -| [torch.angle](https://pytorch.org/docs/1.8.1/generated/torch.angle.html) | [mindspore.ops.angle](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.angle.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.any](https://pytorch.org/docs/1.8.1/generated/torch.any.html#torch.any) | [mindspore.ops.any](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.any.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/any.html) | -| [torch.arange](https://pytorch.org/docs/1.8.1/generated/torch.arange.html)| [mindspore.ops.arange](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.arange.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.arccos](https://pytorch.org/docs/1.8.1/generated/torch.arccos.html) | [mindspore.ops.arccos](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.arccos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.arccosh](https://pytorch.org/docs/1.8.1/generated/torch.arccosh.html) | [mindspore.ops.arccosh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.arccosh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.arcsin](https://pytorch.org/docs/1.8.1/generated/torch.arcsin.html) | [mindspore.ops.arcsin](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.arcsin.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.arcsinh](https://pytorch.org/docs/1.8.1/generated/torch.arcsinh.html) | [mindspore.ops.arcsinh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.arcsinh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.arctan](https://pytorch.org/docs/1.8.1/generated/torch.arctan.html) | [mindspore.ops.arctan](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.arctan.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.arctanh](https://pytorch.org/docs/1.8.1/generated/torch.arctanh.html) | [mindspore.ops.arctanh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.arctanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.argmax](https://pytorch.org/docs/1.8.1/generated/torch.argmax.html) | [mindspore.ops.argmax](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.argmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.argmin](https://pytorch.org/docs/1.8.1/generated/torch.argmin.html) | [mindspore.ops.argmin](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.argmin.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/argmin.html) | -| [torch.argsort](https://pytorch.org/docs/1.8.1/generated/torch.argsort.html) | [mindspore.ops.argsort](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.argsort.html) |The functions are consistent, but the parameter names are inconsistent.| -| [torch.asin](https://pytorch.org/docs/1.8.1/generated/torch.asin.html) | [mindspore.ops.asin](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.asin.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.asinh](https://pytorch.org/docs/1.8.1/generated/torch.asinh.html)| [mindspore.ops.asinh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.asinh.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.atan](https://pytorch.org/docs/1.8.1/generated/torch.atan.html) | [mindspore.ops.atan](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.atan.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.atan2](https://pytorch.org/docs/1.8.1/generated/torch.atan2.html) | [mindspore.ops.atan2](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.atan2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.atanh](https://pytorch.org/docs/1.8.1/generated/torch.atanh.html)| [mindspore.ops.atanh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.atanh.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.atleast_1d](https://pytorch.org/docs/1.8.1/generated/torch.atleast_1d.html) | [mindspore.ops.atleast_1d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.atleast_1d.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.atleast_2d](https://pytorch.org/docs/1.8.1/generated/torch.atleast_2d.html) | [mindspore.ops.atleast_2d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.atleast_2d.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.atleast_3d](https://pytorch.org/docs/1.8.1/generated/torch.atleast_3d.html) | [mindspore.ops.atleast_3d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.atleast_3d.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.baddbmm](https://pytorch.org/docs/1.8.1/generated/torch.baddbmm.html) | [mindspore.ops.baddbmm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.baddbmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.bartlett_window](https://pytorch.org/docs/1.8.1/generated/torch.bartlett_window.html) | [mindspore.ops.bartlett_window](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bartlett_window.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.bernoulli](https://pytorch.org/docs/1.8.1/generated/torch.bernoulli.html) | [mindspore.ops.bernoulli](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bernoulli.html) | [The functions are consistent, but the number or sequence of parameters is inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/bernoulli.html) | -| [torch.bincount](https://pytorch.org/docs/1.8.1/generated/torch.bincount.html) | [mindspore.ops.bincount](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bincount.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.bitwise_and](https://pytorch.org/docs/1.8.1/generated/torch.bitwise_and.html) | [mindspore.ops.bitwise_and](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bitwise_and.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.bitwise_or](https://pytorch.org/docs/1.8.1/generated/torch.bitwise_or.html) | [mindspore.ops.bitwise_or](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bitwise_or.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.bitwise_xor](https://pytorch.org/docs/1.8.1/generated/torch.bitwise_xor.html) | [mindspore.ops.bitwise_xor](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bitwise_xor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.blackman_window](https://pytorch.org/docs/1.8.1/generated/torch.blackman_window.html) | [mindspore.ops.blackman_window](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.blackman_window.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.block_diag](https://pytorch.org/docs/1.8.1/generated/torch.block_diag.html) | [mindspore.ops.block_diag](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.block_diag.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.bmm](https://pytorch.org/docs/1.8.1/generated/torch.bmm.html) | [mindspore.ops.bmm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bmm.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.bucketize](https://pytorch.org/docs/1.8.1/generated/torch.bucketize.html) | [mindspore.ops.bucketize](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bucketize.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/bucketize.html) | -| [torch.broadcast_to](https://pytorch.org/docs/1.8.1/generated/torch.broadcast_to.html) | [mindspore.ops.broadcast_to](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.broadcast_to.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/broadcast_to.html) | -| [torch.cat](https://pytorch.org/docs/1.8.1/generated/torch.cat.html) | [mindspore.ops.cat](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cat.html) | [The functions are consistent, but the parameter data types are inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/cat.html) | -| [torch.cdist](https://pytorch.org/docs/1.8.1/generated/torch.cdist.html) | [mindspore.ops.cdist](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cdist.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/cdist.html) | -| [torch.ceil](https://pytorch.org/docs/1.8.1/generated/torch.ceil.html) | [mindspore.ops.ceil](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ceil.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.cholesky](https://pytorch.org/docs/1.8.1/generated/torch.cholesky.html) | [mindspore.ops.cholesky](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cholesky.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.cholesky_solve](https://pytorch.org/docs/1.8.1/generated/torch.cholesky_solve.html) | [mindspore.ops.cholesky_solve](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cholesky_solve.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.chunk](https://pytorch.org/docs/1.8.1/generated/torch.chunk.html) | [mindspore.ops.chunk](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.chunk.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.clamp](https://pytorch.org/docs/1.8.1/generated/torch.clamp.html) | [mindspore.ops.clamp](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.clamp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.clip](https://pytorch.org/docs/1.8.1/generated/torch.clip.html) | [mindspore.ops.clip](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.clip.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.column_stack](https://pytorch.org/docs/1.8.1/generated/torch.column_stack.html) | [mindspore.ops.column_stack](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.column_stack.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.combinations](https://pytorch.org/docs/1.8.1/generated/torch.combinations.html) | [mindspore.ops.combinations](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.combinations.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.conj](https://pytorch.org/docs/1.8.1/generated/torch.conj.html) | [mindspore.ops.conj](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.conj.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.copysign](https://pytorch.org/docs/1.8.1/generated/torch.copysign.html) | [mindspore.ops.copysign](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.copysign.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.cos](https://pytorch.org/docs/1.8.1/generated/torch.cos.html) | [mindspore.ops.cos](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cos.html) | [The functions are consistent, but the parameter data types are inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/cos.html) | -| [torch.cosh](https://pytorch.org/docs/1.8.1/generated/torch.cosh.html) | [mindspore.ops.cosh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cosh.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.count_nonzero](https://pytorch.org/docs/1.8.1/generated/torch.count_nonzero.html) | [mindspore.ops.count_nonzero](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.count_nonzero.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.cross](https://pytorch.org/docs/1.8.1/generated/torch.cross.html) | [mindspore.ops.cross](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cross.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.cummax](https://pytorch.org/docs/1.8.1/generated/torch.cummax.html) | [mindspore.ops.cummax](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cummax.html) |The functions are consistent, but the parameter names are inconsistent.| -| [torch.cummin](https://pytorch.org/docs/1.8.1/generated/torch.cummin.html) | [mindspore.ops.cummin](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cummin.html) |The functions are consistent, but the parameter names are inconsistent.| -| [torch.cumprod](https://pytorch.org/docs/1.8.1/generated/torch.cumprod.html) | [mindspore.ops.cumprod](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cumprod.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.cumsum](https://pytorch.org/docs/1.8.1/generated/torch.cumsum.html) | [mindspore.ops.cumsum](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cumsum.html) | The functiions are consistent, but the parameter names are inconsistent. | -| [torch.deg2rad](https://pytorch.org/docs/1.8.1/generated/torch.deg2rad.html) | [mindspore.ops.deg2rad](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.deg2rad.html) | [The functions are consistent, but the parameter data types are inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/deg2rad.html) | -| [torch.diag](https://pytorch.org/docs/1.8.1/generated/torch.diag.html) | [mindspore.ops.diag](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.diag.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/diag.html) | -| [torch.diag_embed](https://pytorch.org/docs/1.8.1/generated/torch.diag_embed.html) | [mindspore.ops.diag_embed](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.diag_embed.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.diagflat](https://pytorch.org/docs/1.8.1/generated/torch.diagflat.html) | [mindspore.ops.diagflat](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.diagflat.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.diagonal](https://pytorch.org/docs/1.8.1/generated/torch.diagonal.html) | [mindspore.ops.diagonal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.diagonal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.diff](https://pytorch.org/docs/1.8.1/generated/torch.diff.html) | [mindspore.ops.diff](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.diff.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.digamma](https://pytorch.org/docs/1.8.1/generated/torch.digamma.html) | [mindspore.ops.digamma](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.digamma.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.dist](https://pytorch.org/docs/1.8.1/generated/torch.dist.html) | [mindspore.ops.dist](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.dist.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.div](https://pytorch.org/docs/1.8.1/generated/torch.div.html) | [mindspore.ops.div](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.div.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.divide](https://pytorch.org/docs/1.8.1/generated/torch.divide.html) | [mindspore.ops.divide](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.dot](https://pytorch.org/docs/1.8.1/generated/torch.dot.html) | [mindspore.ops.tensor_dot](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tensor_dot.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/tensor_dot.html) | -| [torch.dstack](https://pytorch.org/docs/1.8.1/generated/torch.dstack.html) | [mindspore.ops.dstack](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.dstack.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.einsum](https://pytorch.org/docs/1.8.1/generated/torch.einsum.html) | [mindspore.ops.einsum](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.einsum.html#mindspore.ops.einsum) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.eq](https://pytorch.org/docs/1.8.1/generated/torch.eq.html) | [mindspore.ops.equal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.erf](https://pytorch.org/docs/1.8.1/generated/torch.erf.html) | [mindspore.ops.erf](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.erf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.erfc](https://pytorch.org/docs/1.8.1/generated/torch.erfc.html) | [mindspore.ops.erfc](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.erfc.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.erfinv](https://pytorch.org/docs/1.8.1/generated/torch.erfinv.html) | [mindspore.ops.erfinv](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.erfinv.html) | [The functions are consistent, but the parameter data types are inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/erfinv.html) | -| [torch.exp](https://pytorch.org/docs/1.8.1/generated/torch.exp.html) | [mindspore.ops.exp](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.exp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.exp2](https://pytorch.org/docs/1.8.1/generated/torch.exp2.html) | [mindspore.ops.exp2](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.exp2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.expm1](https://pytorch.org/docs/1.8.1/generated/torch.expm1.html) | [mindspore.ops.expm1](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.expm1.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.eye](https://pytorch.org/docs/1.8.1/generated/torch.eye.html) | [mindspore.ops.eye](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.eye.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.flatten](https://pytorch.org/docs/1.8.1/generated/torch.flatten.html) | [mindspore.ops.flatten](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.flatten.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/flatten.html) | -| [torch.float_power](https://pytorch.org/docs/1.8.1/generated/torch.float_power.html) | [mindspore.ops.float_power](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.float_power.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/float_power.html) | -| [torch.flip](https://pytorch.org/docs/1.8.1/generated/torch.flip.html) | [mindspore.ops.flip](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.flip.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.fliplr](https://pytorch.org/docs/1.8.1/generated/torch.fliplr.html) | [mindspore.ops.fliplr](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.fliplr.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.flipud](https://pytorch.org/docs/1.8.1/generated/torch.flipud.html) | [mindspore.ops.flipud](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.flipud.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.floor](https://pytorch.org/docs/1.8.1/generated/torch.floor.html) | [mindspore.ops.floor](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.floor.html) | [The functions are consistent, but the parameter data types are inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/floor.html) | -| [torch.floor_divide](https://pytorch.org/docs/1.8.1/generated/torch.floor_divide.html) | [mindspore.ops.floor_divide](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.floor_divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.fmax](https://pytorch.org/docs/1.8.1/generated/torch.fmax.html) | [mindspore.ops.fmax](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.fmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.fmod](https://pytorch.org/docs/1.8.1/generated/torch.fmod.html) | [mindspore.ops.fmod](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.fmod.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.frac](https://pytorch.org/docs/1.8.1/generated/torch.frac.html) | [mindspore.ops.frac](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.frac.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.full](https://pytorch.org/docs/1.8.1/generated/torch.full.html) | [mindspore.ops.full](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.full.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.full_like](https://pytorch.org/docs/1.8.1/generated/torch.full_like.html) | [mindspore.ops.full_like](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.full_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.gcd](https://pytorch.org/docs/1.8.1/generated/torch.gcd.html) | [mindspore.ops.gcd](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.gcd.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.ge](https://pytorch.org/docs/1.8.1/generated/torch.ge.html) | [mindspore.ops.ge](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ge.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.geqrf](https://pytorch.org/docs/1.8.1/generated/torch.geqrf.html) | [mindspore.ops.geqrf](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.geqrf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.ger](https://pytorch.org/docs/1.8.1/generated/torch.ger.html) | [mindspore.ops.ger](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ger.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/ger.html) | -| [torch.greater](https://pytorch.org/docs/1.8.1/generated/torch.greater.html) | [mindspore.ops.greater](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.greater.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.greater_equal](https://pytorch.org/docs/1.8.1/generated/torch.greater_equal.html) | [mindspore.ops.greater_equal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.greater_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.gt](https://pytorch.org/docs/1.8.1/generated/torch.gt.html) | [mindspore.ops.gt](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.gt.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.hann_window](https://pytorch.org/docs/1.8.1/generated/torch.hann_window.html) | [mindspore.ops.hann_window](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hann_window.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.heaviside](https://pytorch.org/docs/1.8.1/generated/torch.heaviside.html) | [mindspore.ops.heaviside](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.heaviside.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.hstack](https://pytorch.org/docs/1.8.1/generated/torch.hstack.html) | [mindspore.ops.hstack](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hstack.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.histc](https://pytorch.org/docs/1.8.1/generated/torch.histc.html) | [mindspore.ops.histc](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.histc.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.hypot](https://pytorch.org/docs/1.8.1/generated/torch.hypot.html) | [mindspore.ops.hypot](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hypot.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.hamming_window](https://pytorch.org/docs/1.8.1/generated/torch.hamming_window.html) | [mindspore.ops.hamming_window](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hamming_window.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.i0](https://pytorch.org/docs/1.8.1/generated/torch.i0.html) | [mindspore.ops.i0](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.i0.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.igamma](https://pytorch.org/docs/1.8.1/generated/torch.igamma.html)| [mindspore.ops.igamma](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.igamma.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.igammac](https://pytorch.org/docs/1.8.1/generated/torch.igammac.html)| [mindspore.ops.igammac](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.igammac.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.imag](https://pytorch.org/docs/1.8.1/generated/torch.imag.html) | [mindspore.ops.imag](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.imag.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.index_select](https://pytorch.org/docs/1.8.1/generated/torch.index_select.html) | [mindspore.ops.index_select](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.index_select.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.inner](https://pytorch.org/docs/1.8.1/generated/torch.inner.html) | [mindspore.ops.inner](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.inner.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.inverse](https://pytorch.org/docs/1.8.1/generated/torch.inverse.html) | [mindspore.ops.inverse](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.inverse.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.isclose](https://pytorch.org/docs/1.8.1/generated/torch.isclose.html) | [mindspore.ops.isclose](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.isclose.html) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/isclose.html) | -| [torch.isfinite](https://pytorch.org/docs/1.8.1/generated/torch.isfinite.html) | [mindspore.ops.isfinite](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.isfinite.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.isinf](https://pytorch.org/docs/1.8.1/generated/torch.isinf.html) | [mindspore.ops.isinf](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.isinf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.isnan](https://pytorch.org/docs/1.8.1/generated/torch.isnan.html) | [mindspore.ops.isnan](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.isnan.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.isneginf](https://pytorch.org/docs/1.8.1/generated/torch.isneginf.html) | [mindspore.ops.isneginf](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.isneginf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.isposinf](https://pytorch.org/docs/1.8.1/generated/torch.isposinf.html) | [mindspore.ops.isposinf](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.isposinf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.isreal](https://pytorch.org/docs/1.8.1/generated/torch.isreal.html) | [mindspore.ops.isreal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.isreal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.is_complex](https://pytorch.org/docs/1.8.1/generated/torch.is_complex.html) | [mindspore.ops.is_complex](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.is_complex.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.is_floating_point](https://pytorch.org/docs/1.8.1/generated/torch.is_floating_point.html) | [mindspore.ops.is_floating_point](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.is_floating_point.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.is_nonzero](https://pytorch.org/docs/1.8.1/generated/torch.is_nonzero.html#torch.is_nonzero) | [mindspore.ops.is_nonzero](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.is_nonzero.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.is_tensor](https://pytorch.org/docs/1.8.1/generated/torch.is_tensor.html#torch.is_tensor) | [mindspore.ops.is_tensor](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.is_tensor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.kaiser_window](https://pytorch.org/docs/1.8.1/generated/torch.kaiser_window.html) | [mindspore.ops.kaiser_window](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.kaiser_window.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.kron](https://pytorch.org/docs/1.8.1/generated/torch.kron.html) | [mindspore.ops.kron](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.kron.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.lcm](https://pytorch.org/docs/1.8.1/generated/torch.lcm.html) | [mindspore.ops.lcm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.lcm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.ldexp](https://pytorch.org/docs/1.8.1/generated/torch.ldexp.html) | [mindspore.ops.ldexp](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ldexp.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.le](https://pytorch.org/docs/1.8.1/generated/torch.le.html) | [mindspore.ops.le](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.le.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.lerp](https://pytorch.org/docs/1.8.1/generated/torch.lerp.html) | [mindspore.ops.lerp](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.lerp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.less](https://pytorch.org/docs/1.8.1/generated/torch.less.html) | [mindspore.ops.less](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.less.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.less_equal](https://pytorch.org/docs/1.8.1/generated/torch.less_equal.html) | [mindspore.ops.less_equal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.less_equal.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.linalg.cond](https://pytorch.org/docs/1.8.1/linalg.html#torch.linalg.cond) | [mindspore.ops.cond](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cond.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.linalg.eigvals](https://pytorch.org/docs/stable/generated/torch.linalg.eigvals.html#torch.linalg.eigvals) | [mindspore.ops.eigvals](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.eigvals.html#mindspore.ops.eigvals) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.linalg.norm](https://pytorch.org/docs/1.8.1/linalg.html#torch.linalg.norm) | [mindspore.ops.norm](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.norm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.linspace](https://pytorch.org/docs/1.8.1/generated/torch.linspace.html) | [mindspore.ops.linspace](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.linspace.html) | [The functions are consistent, but the number or sequence of parameters is inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/linspace.html) | -| [torch.log](https://pytorch.org/docs/1.8.1/generated/torch.log.html) | [mindspore.ops.log](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.log.html) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/log.html) | -| [torch.log2](https://pytorch.org/docs/1.8.1/generated/torch.log2.html) | [mindspore.ops.log2](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.log2.html) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/log2.html) | -| [torch.log10](https://pytorch.org/docs/1.8.1/generated/torch.log10.html) | [mindspore.ops.log10](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.log10.html) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/log10.html) | -| [torch.logaddexp](https://pytorch.org/docs/1.8.1/generated/torch.logaddexp.html) | [mindspore.ops.logaddexp](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logaddexp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logaddexp2](https://pytorch.org/docs/1.8.1/generated/torch.logaddexp2.html) | [mindspore.ops.logaddexp2](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logaddexp2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logcumsumexp](https://pytorch.org/docs/1.8.1/generated/torch.logcumsumexp.html) | [mindspore.ops.logcumsumexp](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logcumsumexp.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.log1p](https://pytorch.org/docs/1.8.1/generated/torch.log1p.html#torch.log1p) | [mindspore.ops.log1p](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.log1p.html#mindspore.ops.log1p) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logdet](https://pytorch.org/docs/1.8.1/generated/torch.logdet.html#torch.logdet) | [mindspore.ops.logdet](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logdet.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logical_and](https://pytorch.org/docs/1.8.1/generated/torch.logical_and.html) | [mindspore.ops.logical_and](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logical_and.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logical_not](https://pytorch.org/docs/1.8.1/generated/torch.logical_not.html) | [mindspore.ops.logical_not](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logical_not.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logical_or](https://pytorch.org/docs/1.8.1/generated/torch.logical_or.html) | [mindspore.ops.logical_or](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logical_or.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.logical_xor](https://pytorch.org/docs/1.8.1/generated/torch.logical_xor.html) | [mindspore.ops.logical_xor](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logical_xor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logit](https://pytorch.org/docs/1.8.1/generated/torch.logit.html)| [mindspore.ops.logit](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logit.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logspace](https://pytorch.org/docs/1.8.1/generated/torch.logspace.html) | [mindspore.ops.logspace](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logspace.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.logsumexp](https://pytorch.org/docs/1.8.1/generated/torch.logsumexp.html) | [mindspore.ops.logsumexp](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logsumexp.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.lt](https://pytorch.org/docs/1.8.1/generated/torch.lt.html) | [mindspore.ops.lt](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.lt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.lu_solve](https://pytorch.org/docs/1.8.1/generated/torch.lu_solve.html) | [mindspore.ops.lu_solve](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.lu_solve.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.lu_unpack](https://pytorch.org/docs/1.8.1/generated/torch.lu_unpack.html) | [mindspore.ops.lu_unpack](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.lu_unpack.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.masked_select](https://pytorch.org/docs/1.8.1/generated/torch.masked_select.html) | [mindspore.ops.masked_select](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.masked_select.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.matmul](https://pytorch.org/docs/1.8.1/generated/torch.matmul.html#torch.matmul) | [mindspore.ops.matmul](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.matmul.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.max](https://pytorch.org/docs/1.8.1/generated/torch.max.html) | [mindspore.ops.max](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.max.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/max.html) | -| [torch.maximum](https://pytorch.org/docs/1.8.1/generated/torch.maximum.html) | [mindspore.ops.maximum](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.maximum.html) | The functions are consistent, but the parameter names are inconsistent. | -|[torch.mean](https://pytorch.org/docs/1.8.1/generated/torch.mean.html) | [mindspore.ops.mean](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.mean.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.median](https://pytorch.org/docs/1.8.1/generated/torch.median.html) | [mindspore.ops.median](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.median.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/median.html) | -| [torch.meshgrid](https://pytorch.org/docs/1.8.1/generated/torch.meshgrid.html#torch.meshgrid) | [mindspore.ops.meshgrid](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.meshgrid.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/meshgrid.html) | -| [torch.mm](https://pytorch.org/docs/1.8.1/generated/torch.mm.html)| [mindspore.ops.mm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.mm.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.mul](https://pytorch.org/docs/1.8.1/generated/torch.mul.html#torch.mul) | [mindspore.ops.mul](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.mul.html#mindspore.ops.mul) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.min](https://pytorch.org/docs/1.8.1/generated/torch.min.html) | [mindspore.ops.min](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.min.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/min.html) | -| [torch.minimum](https://pytorch.org/docs/1.8.1/generated/torch.minimum.html) | [mindspore.ops.minimum](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.minimum.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.msort](https://pytorch.org/docs/1.8.1/generated/torch.msort.html) | [mindspore.ops.msort](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.msort.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.moveaxis](https://pytorch.org/docs/1.8.1/generated/torch.moveaxis.html) | [mindspore.ops.moveaxis](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.moveaxis.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.movedim](https://pytorch.org/docs/1.8.1/generated/torch.movedim.html) | [mindspore.ops.movedim](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.movedim.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.multinomial](https://pytorch.org/docs/1.8.1/generated/torch.multinomial.html) | [mindspore.ops.multinomial](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.multinomial.html) | [The functions are consistent, but the parameter default values are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/multinomial.html) | -| [torch.multiply](https://pytorch.org/docs/1.8.1/generated/torch.multiply.html) | [mindspore.ops.multiply](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.multiply.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.mv](https://pytorch.org/docs/1.8.1/generated/torch.mv.html) | [mindspore.ops.mv](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.mv.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.mvlgamma](https://pytorch.org/docs/1.8.1/generated/torch.mvlgamma.html)| [mindspore.ops.mvlgamma](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.mvlgamma.html)| [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/mvlgamma.html) | -| [torch.nan_to_num](https://pytorch.org/docs/1.8.1/generated/torch.nan_to_num.html) | [mindspore.ops.nan_to_num](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.nan_to_num.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nansum](https://pytorch.org/docs/1.8.1/generated/torch.nansum.html) | [mindspore.ops.nansum](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.nansum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.narrow](https://pytorch.org/docs/1.8.1/generated/torch.narrow.html) | [mindspore.ops.narrow](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.narrow.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.ne](https://pytorch.org/docs/1.8.1/generated/torch.ne.html) | [mindspore.ops.ne](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ne.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.neg](https://pytorch.org/docs/1.8.1/generated/torch.neg.html)| [mindspore.ops.neg](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.neg.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.negative](https://pytorch.org/docs/1.8.1/generated/torch.negative.html) | [mindspore.ops.negative](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.negative.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nextafter](https://pytorch.org/docs/1.8.1/generated/torch.nextafter.html) | [mindspore.ops.nextafter](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.nextafter.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nonzero](https://pytorch.org/docs/1.8.1/generated/torch.nonzero.html) | [mindspore.ops.nonzero](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.nonzero.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.normal](https://pytorch.org/docs/1.8.1/generated/torch.normal.html) | [mindspore.ops.normal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.normal.html) | [The functions are consistent, but the number or sequence of parameters is inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/normal.html) | -| [torch.not_equal](https://pytorch.org/docs/1.8.1/generated/torch.not_equal.html) | [mindspore.ops.not_equal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.not_equal.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.numel](https://pytorch.org/docs/1.8.1/generated/torch.numel.html) | [mindspore.ops.numel](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.numel.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.ones](https://pytorch.org/docs/1.8.1/generated/torch.ones.html) | [mindspore.ops.ones](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ones.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/ones.html) | -| [torch.ones_like](https://pytorch.org/docs/1.8.1/torch.html#torch.ones_like) | [mindspore.ops.ones_like](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ones_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.orgqr](https://pytorch.org/docs/1.8.1/generated/torch.orgqr.html) | [mindspore.ops.orgqr](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.orgqr.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.ormqr](https://pytorch.org/docs/1.8.1/generated/torch.ormqr.html) | [mindspore.ops.ormqr](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ormqr.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.outer](https://pytorch.org/docs/1.8.1/generated/torch.outer.html) | [mindspore.ops.outer](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.outer.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.poisson](https://pytorch.org/docs/1.8.1/generated/torch.poisson.html) | [mindspore.ops.random_poisson](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.random_poisson.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/poisson.html) | -| [torch.polar](https://pytorch.org/docs/1.8.1/generated/torch.polar.html) | [mindspore.ops.polar](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.polar.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.polygamma](https://pytorch.org/docs/1.8.1/generated/torch.polygamma.html) | [mindspore.ops.polygamma](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.polygamma.html) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/polygamma.html) | -| [torch.pow](https://pytorch.org/docs/1.8.1/generated/torch.pow.html#torch.pow) | [mindspore.ops.pow](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.pow.html#mindspore.ops.pow) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.prod](https://pytorch.org/docs/1.8.1/generated/torch.prod.html#torch.prod) | [mindspore.ops.prod](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.prod.html#mindspore.ops.prod) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/prod.html) | -| [torch.rad2deg](https://pytorch.org/docs/1.8.1/generated/torch.rad2deg.html) | [mindspore.ops.rad2deg](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.rad2deg.html) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/rad2deg.html) | -| [torch.rand](https://pytorch.org/docs/1.8.1/generated/torch.rand.html) | [mindspore.ops.rand](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.rand.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.rand_like](https://pytorch.org/docs/1.8.1/generated/torch.rand_like.html) | [mindspore.ops.rand_like](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.rand_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.randn](https://pytorch.org/docs/1.8.1/generated/torch.randn.html) | [mindspore.ops.randn](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.randn.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.randn_like](https://pytorch.org/docs/1.8.1/generated/torch.randn_like.html) | [mindspore.ops.randn_like](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.randn_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.randint](https://pytorch.org/docs/1.8.1/generated/torch.randint.html) | [mindspore.ops.randint](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.randint.html) | [The functions are consistent, but the parameter default values are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/randint.html) | -| [torch.randint_like](https://pytorch.org/docs/1.8.1/generated/torch.randint_like.html) | [mindspore.ops.randint_like](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.randint_like.html) | [The functions are consistent, but the parameter default values are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/randint_like.html) | -| [torch.randperm](https://pytorch.org/docs/1.8.1/generated/torch.randperm.html) | [mindspore.ops.randperm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.randperm.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.range](https://pytorch.org/docs/1.8.1/generated/torch.range.html#torch.range) | [mindspore.ops.range](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.range.html) | [The functions are consistent, but the number or sequence of parameters is inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/range.html) | -| [torch.ravel](https://pytorch.org/docs/1.8.1/generated/torch.ravel.html) | [mindspore.ops.ravel](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ravel.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.real](https://pytorch.org/docs/1.8.1/generated/torch.real.html) | [mindspore.ops.real](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.real.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.reciprocal](https://pytorch.org/docs/1.8.1/generated/torch.reciprocal.html) | [mindspore.ops.reciprocal](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.reciprocal.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.remainder](https://pytorch.org/docs/1.8.1/generated/torch.remainder.html) | [mindspore.ops.remainder](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.remainder.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.renorm](https://pytorch.org/docs/1.8.1/generated/torch.renorm.html) | [mindspore.ops.renorm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.renorm.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/renorm.html) | -| [torch.repeat_interleave](https://pytorch.org/docs/1.8.1/generated/torch.repeat_interleave.html) | [mindspore.ops.repeat_interleave](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.repeat_interleave.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.reshape](https://pytorch.org/docs/1.8.1/generated/torch.reshape.html#torch.reshape) | [mindspore.ops.reshape](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.reshape.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.roll](https://pytorch.org/docs/1.8.1/generated/torch.roll.html) | [mindspore.ops.roll](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.roll.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.rot90](https://pytorch.org/docs/1.8.1/generated/torch.rot90.html) | [mindspore.ops.rot90](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.rot90.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.round](https://pytorch.org/docs/1.8.1/generated/torch.round.html)| [mindspore.ops.round](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.round.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.row_stack](https://pytorch.org/docs/1.8.1/generated/torch.row_stack.html)| [mindspore.ops.row_stack](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.row_stack.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.rsqrt](https://pytorch.org/docs/1.8.1/generated/torch.rsqrt.html) | [mindspore.ops.rsqrt](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.rsqrt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.searchsorted](https://pytorch.org/docs/1.8.1/generated/torch.searchsorted.html) | [mindspore.ops.searchsorted](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.searchsorted.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.scatter](https://pytorch.org/docs/1.8.1/generated/torch.scatter.html) | [mindspore.ops.scatter](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.scatter.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/scatter.html) | -| [torch.scatter_add](https://pytorch.org/docs/1.8.1/generated/torch.scatter_add.html) | [mindspore.ops.tensor_scatter_elements](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tensor_scatter_elements.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/scatter_add.html) | -| [torch.sgn](https://pytorch.org/docs/1.8.1/generated/torch.sgn.html) | [mindspore.ops.sgn](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sgn.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.sigmoid](https://pytorch.org/docs/1.8.1/generated/torch.sigmoid.html) | [mindspore.ops.sigmoid](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.sign](https://pytorch.org/docs/1.8.1/generated/torch.sign.html) | [mindspore.ops.sign](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sign.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.signbit](https://pytorch.org/docs/1.8.1/generated/torch.signbit.html) | [mindspore.ops.signbit](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.signbit.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.sin](https://pytorch.org/docs/1.8.1/generated/torch.sin.html)| [mindspore.ops.sin](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sin.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.sinc](https://pytorch.org/docs/1.8.1/generated/torch.sinc.html)| [mindspore.ops.sinc](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sinc.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.sinh](https://pytorch.org/docs/1.8.1/generated/torch.sinh.html)| [mindspore.ops.sinh](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sinh.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.slogdet](https://pytorch.org/docs/1.8.1/generated/torch.slogdet.html) | [mindspore.ops.slogdet](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.slogdet.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.sort](https://pytorch.org/docs/1.8.1/generated/torch.sort.html) | [mindspore.ops.sort](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sort.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.split](https://pytorch.org/docs/1.8.1/generated/torch.split.html) | [mindspore.ops.split](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.split.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.stack](https://pytorch.org/docs/1.8.1/generated/torch.stack.html) | [mindspore.ops.stack](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.stack.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.squeeze](https://pytorch.org/docs/1.8.1/generated/torch.squeeze.html) | [mindspore.ops.squeeze](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.squeeze.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.std](https://pytorch.org/docs/1.8.1/generated/torch.std.html#torch.std) | [mindspore.ops.std](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.std.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/std.html) | -| [torch.std_mean](https://pytorch.org/docs/1.8.1/generated/torch.std_mean.html#torch.std_mean) | [mindspore.ops.std_mean](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.std_mean.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/std_mean.html) | -| [torch.sqrt](https://pytorch.org/docs/1.8.1/generated/torch.sqrt.html) | [mindspore.ops.sqrt](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sqrt.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.square](https://pytorch.org/docs/1.8.1/generated/torch.square.html)| [mindspore.ops.square](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.square.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.sub](https://pytorch.org/docs/1.8.1/generated/torch.sub.html#torch.sub) | [mindspore.ops.subtract](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.subtract.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.subtract](https://pytorch.org/docs/1.8.1/generated/torch.subtract.html#torch.subtract) | [mindspore.ops.subtract](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.subtract.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.sum](https://pytorch.org/docs/1.8.1/generated/torch.sum.html) | [mindspore.ops.sum](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.svd](https://pytorch.org/docs/1.8.1/generated/torch.svd.html) | [mindspore.ops.svd](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.svd.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/svd.html) | -| [torch.swapaxes](https://pytorch.org/docs/1.8.1/generated/torch.swapaxes.html) | [mindspore.ops.swapaxes](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.swapaxes.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.swapdims](https://pytorch.org/docs/1.8.1/generated/torch.swapdims.html) | [mindspore.ops.swapdims](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.swapdims.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.t](https://pytorch.org/docs/1.8.1/generated/torch.t.html) | [mindspore.ops.t](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.t.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.tan](https://pytorch.org/docs/1.8.1/generated/torch.tan.html)| [mindspore.ops.tan](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tan.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.tanh](https://pytorch.org/docs/1.8.1/generated/torch.tanh.html) | [mindspore.ops.tanh](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.tensor_split](https://pytorch.org/docs/1.8.1/generated/torch.tensor_split.html) | [mindspore.ops.tensor_split](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tensor_split.html) |The functions are consistent, but the parameter names are inconsistent.| -| [torch.tile](https://pytorch.org/docs/1.8.1/generated/torch.tile.html)| [mindspore.ops.tile](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tile.html)| The functions are consistent, but the parameter names are inconsistent. | -| [torch.topk](https://pytorch.org/docs/1.8.1/generated/torch.topk.html#torch.topk) | [mindspore.ops.topk](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.topk.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.trace](https://pytorch.org/docs/1.8.1/generated/torch.trace.html) | [mindspore.ops.trace](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.trace.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.transpose](https://pytorch.org/docs/1.8.1/generated/torch.transpose.html) | [mindspore.ops.swapaxes](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.swapaxes.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.trapz](https://pytorch.org/docs/1.8.1/generated/torch.trapz.html) | [mindspore.ops.trapz](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.trapz.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.tril](https://pytorch.org/docs/1.8.1/generated/torch.tril.html) | [mindspore.ops.tril](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tril.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.tril_indices](https://pytorch.org/docs/1.8.1/generated/torch.tril_indices.html) | [mindspore.ops.tril_indices](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tril_indices.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.triu_indices](https://pytorch.org/docs/1.8.1/generated/torch.triu_indices.html) | [mindspore.ops.triu_indices](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.triu_indices.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.true_divide](https://pytorch.org/docs/1.8.1/generated/torch.true_divide.html#torch.true_divide) | [mindspore.ops.true_divide](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.true_divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.trunc](https://pytorch.org/docs/1.8.1/generated/torch.trunc.html)| [mindspore.ops.trunc](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.trunc.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.unbind](https://pytorch.org/docs/1.8.1/generated/torch.unbind.html) | [mindspore.ops.unbind](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.unbind.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.unique](https://pytorch.org/docs/1.8.1/generated/torch.unique.html#torch.unique) | [mindspore.ops.unique](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.unique.html#mindspore.ops.unique) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/unique.html) | -| [torch.unique_consecutive](https://pytorch.org/docs/1.8.1/generated/torch.unique_consecutive.html#torch.unique_consecutive) | [mindspore.ops.unique_consecutive](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.unique_consecutive.html#mindspore.ops.unique_consecutive) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.unsqueeze](https://pytorch.org/docs/1.8.1/generated/torch.unsqueeze.html)| [mindspore.ops.unsqueeze](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.unsqueeze.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.vander](https://pytorch.org/docs/1.8.1/generated/torch.vander.html) | [mindspore.ops.vander](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.vander.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.var](https://pytorch.org/docs/1.8.1/generated/torch.var.html#torch.var) | [mindspore.ops.var](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.var.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/var.html) | -| [torch.var_mean](https://pytorch.org/docs/1.8.1/generated/torch.var_mean.html#torch.var_mean) | [mindspore.ops.var_mean](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.var_mean.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/var_mean.html) | -| [torch.view_as_real](https://pytorch.org/docs/1.8.1/generated/torch.view_as_real.html) | [mindspore.ops.view_as_real](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.view_as_real.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.vstack](https://pytorch.org/docs/1.8.1/generated/torch.vstack.html) | [mindspore.ops.vstack](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.vstack.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.where](https://pytorch.org/docs/1.8.1/generated/torch.where.html) | [mindspore.ops.where](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.where.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.xlogy](https://pytorch.org/docs/1.8.1/generated/torch.xlogy.html) | [mindspore.ops.xlogy](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.xlogy.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.zeros](https://pytorch.org/docs/1.8.1/generated/torch.zeros.html) | [mindspore.ops.zeros](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.zeros.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/zeros.html) | -| [torch.zeros_like](https://pytorch.org/docs/1.8.1/torch.html#torch.zeros_like) | [mindspore.ops.zeros_like](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.zeros_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | - -| PyTorch 1.12 APIs | MindSpore APIs | Descriptions | +| PyTorch 2.1 APIs | MindSpore APIs | Descriptions | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.hsplit](https://pytorch.org/docs/1.12/generated/torch.hsplit.html) | [mindspore.ops.hsplit](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hsplit.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.permute](https://pytorch.org/docs/1.12/generated/torch.permute.html) | [mindspore.ops.permute](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.permute.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.vsplit](https://pytorch.org/docs/1.12/generated/torch.vsplit.html) | [mindspore.ops.vsplit](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.vsplit.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| - -## torch.generator - -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---- | -| [torch.get_rng_state](https://pytorch.org/docs/1.8.1/generated/torch.get_rng_state.html) | [mindspore.get_rng_state](https://www.mindspore.cn/docs/en/master/api_python/mindspore/mindspore.get_rng_state.html) | Consistent | -| [torch.initial_seed](https://pytorch.org/docs/1.8.1/generated/torch.initial_seed.html) | [mindspore.initial_seed](https://www.mindspore.cn/docs/en/master/api_python/mindspore/mindspore.initial_seed.html) | Consistent | -| [torch.manual_seed](https://pytorch.org/docs/1.8.1/generated/torch.manual_seed.html) | [mindspore.manual_seed](https://www.mindspore.cn/docs/en/master/api_python/mindspore/mindspore.manual_seed.html) | Consistent | -| [torch.seed](https://pytorch.org/docs/1.8.1/generated/torch.seed.html) | [mindspore.seed](https://www.mindspore.cn/docs/en/master/api_python/mindspore/mindspore.seed.html) | Consistent | -| [torch.set_rng_state](https://pytorch.org/docs/1.8.1/generated/torch.set_rng_state.html) | [mindspore.set_rng_state](https://www.mindspore.cn/docs/en/master/api_python/mindspore/mindspore.set_rng_state.html) | Consistent | -| [torch.Generator](https://pytorch.org/docs/1.8.1/generated/torch.Generator.html) | [mindspore.Generator](https://www.mindspore.cn/docs/en/master/api_python/mindspore/mindspore.Generator.html) | Consistent | - -## torch.distributions - -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---- | -| [torch.distributions.laplace.Laplace](https://pytorch.org/docs/1.8.1/distributions.html#torch.distributions.laplace.Laplace) | [mindspore.ops.standard_laplace](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.standard_laplace.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/standard_laplace.html) | +| [torch.abs](https://pytorch.org/docs/2.1/generated/torch.abs.html) | [mindspore.mint.abs](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.abs.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.acos](https://pytorch.org/docs/2.1/generated/torch.acos.html) | [mindspore.mint.acos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.acos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.acosh](https://pytorch.org/docs/2.1/generated/torch.acosh.html)| [mindspore.mint.acosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.acosh.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.add](https://pytorch.org/docs/2.1/generated/torch.add.html)| [mindspore.mint.add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.add.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.addbmm](https://pytorch.org/docs/2.1/generated/torch.addbmm.html)| [mindspore.mint.addbmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.addbmm.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.addmm](https://pytorch.org/docs/2.1/generated/torch.addmm.html)| [mindspore.mint.addmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.addmm.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.addmm](https://pytorch.org/docs/2.1/generated/torch.addmv.html)| [mindspore.mint.addmv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.addmv.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.all](https://pytorch.org/docs/2.1/generated/torch.all.html#torch.all) | [mindspore.mint.all](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.all.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.allclose](https://pytorch.org/docs/2.1/generated/torch.allclose.html)| [mindspore.mint.allclose](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.allclose.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.amax](https://pytorch.org/docs/2.1/generated/torch.amax.html)| [mindspore.mint.amax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.amax.html)|The functions are consistent, but the parameter data types are inconsistent| +| [torch.amin](https://pytorch.org/docs/2.1/generated/torch.amin.html)| [mindspore.mint.amin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.amin.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.any](https://pytorch.org/docs/2.1/generated/torch.any.html#torch.any) | [mindspore.mint.any](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.any.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.arange](https://pytorch.org/docs/2.1/generated/torch.arange.html)| [mindspore.mint.arange](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arange.html)|The functions are consistent, but the parameter data types are inconsistent| +| [torch.arccos](https://pytorch.org/docs/2.1/generated/torch.arccos.html) | [mindspore.mint.arccos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arccos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.arccosh](https://pytorch.org/docs/2.1/generated/torch.arccosh.html) | [mindspore.mint.arccosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arccosh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.arcsin](https://pytorch.org/docs/2.1/generated/torch.arcsin.html) | [mindspore.mint.arcsin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arcsin.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.arcsinh](https://pytorch.org/docs/2.1/generated/torch.arcsinh.html) | [mindspore.mint.arcsinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arcsinh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.arctan](https://pytorch.org/docs/2.1/generated/torch.arctan.html) | [mindspore.mint.arctan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arctan.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.arctan2](https://pytorch.org/docs/2.1/generated/torch.arctan2.html)| [mindspore.mint.arctan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arctan2.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.arctanh](https://pytorch.org/docs/2.1/generated/torch.arctanh.html) | [mindspore.mint.arctanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arctanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.argmax](https://pytorch.org/docs/2.1/generated/torch.argmax.html) | [mindspore.mint.argmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.argmax.html) |The functions are consistent, but the parameter data types are inconsistent| +| [torch.argmin](https://pytorch.org/docs/2.1/generated/torch.argmin.html) | [mindspore.mint.argmin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.argmin.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.argsort](https://pytorch.org/docs/2.1/generated/torch.argsort.html)| [mindspore.mint.argsort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.argsort.html)|The functions are consistent, but the parameter data types are inconsistent| +| [torch.asin](https://pytorch.org/docs/2.1/generated/torch.asin.html) | [mindspore.mint.asin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.asin.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.asinh](https://pytorch.org/docs/2.1/generated/torch.asinh.html)| [mindspore.mint.asinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.asinh.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.atan](https://pytorch.org/docs/2.1/generated/torch.atan.html) | [mindspore.mint.atan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.atan.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.atan2](https://pytorch.org/docs/2.1/generated/torch.atan2.html) | [mindspore.mint.atan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.atan2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.atanh](https://pytorch.org/docs/2.1/generated/torch.atanh.html)| [mindspore.mint.atanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.atanh.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.baddbmm](https://pytorch.org/docs/1.8.1/generated/torch.baddbmm.html) | [mindspore.mint.baddbmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.baddbmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.bernoulli](https://pytorch.org/docs/2.1/generated/torch.bernoulli.html)| [mindspore.mint.bernoulli](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bernoulli.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.bincount](https://pytorch.org/docs/2.1/generated/torch.bincount.html)| [mindspore.mint.bincount](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bincount.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.bitwise_and](https://pytorch.org/docs/2.1/generated/torch.bitwise_and.html) | [mindspore.mint.bitwise_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bitwise_and.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.bitwise_or](https://pytorch.org/docs/2.1/generated/torch.bitwise_or.html) | [mindspore.mint.bitwise_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bitwise_or.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.bitwise_xor](https://pytorch.org/docs/2.1/generated/torch.bitwise_xor.html) | [mindspore.mint.bitwise_xor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bitwise_xor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.bmm](https://pytorch.org/docs/2.1/generated/torch.bmm.html) | [mindspore.mint.bmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.broadcast_to](https://pytorch.org/docs/2.1/generated/torch.broadcast_to.html) | [mindspore.mint.broadcast_to](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.broadcast_to.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.cat](https://pytorch.org/docs/2.1/generated/torch.cat.html) | [mindspore.mint.cat](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cat.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.cdist](https://pytorch.org/docs/2.1/generated/torch.cdist.html)| [mindspore.mint.cdist](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cdist.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.chunk](https://pytorch.org/docs/2.1/generated/torch.chunk.html)| [mindspore.mint.chunk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.chunk.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.ceil](https://pytorch.org/docs/2.1/generated/torch.ceil.html) | [mindspore.mint.ceil](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ceil.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.clamp](https://pytorch.org/docs/2.1/generated/torch.clamp.html) | [mindspore.mint.clamp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.clamp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.clone](https://pytorch.org/docs/2.1/generated/torch.clone.html)| [mindspore.mint.clone](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.clone.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.concat](https://pytorch.org/docs/2.1/generated/torch.concat.html)| [mindspore.mint.concat](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.concat.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.count_nonzero](https://pytorch.org/docs/2.1/generated/torch.count_nonzero.html)| [mindspore.mint.count_nonzero](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.count_nonzero.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.cos](https://pytorch.org/docs/2.1/generated/torch.cos.html) | [mindspore.mint.cos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.cosh](https://pytorch.org/docs/2.1/generated/torch.cosh.html) | [mindspore.mint.cosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cosh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.cross](https://pytorch.org/docs/2.1/generated/torch.cross.html) | [mindspore.mint.cross](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cross.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.cummax](https://pytorch.org/docs/2.1/generated/torch.cummax.html) | [mindspore.mint.cummax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cummax.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.cummin](https://pytorch.org/docs/2.1/generated/torch.cummin.html) | [mindspore.mint.cummin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cummin.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.cumprod](https://pytorch.org/docs/2.1/generated/torch.cumprod.html)| [mindspore.mint.cumprod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cumprod.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.cumsum](https://pytorch.org/docs/2.1/generated/torch.cumsum.html) | [mindspore.mint.cumsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cumsum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.diff](https://pytorch.org/docs/2.1/generated/torch.diff.html)| [mindspore.mint.diff](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.diff.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.div](https://pytorch.org/docs/2.1/generated/torch.div.html) | [mindspore.mint.div](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.div.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.divide](https://pytorch.org/docs/2.1/generated/torch.divide.html) | [mindspore.mint.divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.dot](https://pytorch.org/docs/2.1/generated/torch.dot.html)| [mindspore.mint.dot](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.dot.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.einsum](https://pytorch.org/docs/2.1/generated/torch.einsum.html)| [mindspore.mint.einsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.einsum.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.empty](https://pytorch.org/docs/2.1/generated/torch.empty.html)| [mindspore.mint.empty](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.empty.html)|The functions are consistent, but the parameter data types are inconsistent| +| [torch.empty_like](https://pytorch.org/docs/2.1/generated/torch.empty_like.html)| [mindspore.mint.empty_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.empty_like.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.equal](https://pytorch.org/docs/2.1/generated/torch.equal.html)| [mindspore.mint.equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.equal.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.eq](https://pytorch.org/docs/2.1/generated/torch.eq.html) | [mindspore.mint.eq](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.eq.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.erf](https://pytorch.org/docs/2.1/generated/torch.erf.html) | [mindspore.mint.erf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.erf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.erfc](https://pytorch.org/docs/2.1/generated/torch.erfc.html) | [mindspore.mint.erfc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.erfc.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.erfinv](https://pytorch.org/docs/2.1/generated/torch.erfinv.html) | [mindspore.mint.erfinv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.erfinv.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.exp](https://pytorch.org/docs/2.1/generated/torch.exp.html) | [mindspore.mint.exp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.exp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.exp2](https://pytorch.org/docs/2.1/generated/torch.exp2.html) | [mindspore.mint.exp2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.exp2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.expm1](https://pytorch.org/docs/2.1/generated/torch.expm1.html) | [mindspore.mint.expm1](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.expm1.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.eye](https://pytorch.org/docs/2.1/generated/torch.eye.html) | [mindspore.mint.eye](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.eye.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.float_power](https://pytorch.org/docs/2.1/generated/torch.float_power.html)| [mindspore.mint.float_power](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.fix.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.flatten](https://pytorch.org/docs/2.1/generated/torch.flatten.html) | [mindspore.mint.flatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.flatten.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.flip](https://pytorch.org/docs/2.1/generated/torch.flip.html) | [mindspore.mint.flip](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.flip.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.floor](https://pytorch.org/docs/2.1/generated/torch.floor.html) | [mindspore.mint.floor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.floor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.fmod](https://pytorch.org/docs/2.1/generated/torch.fmod.html)| [mindspore.mint.fmod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.fmod.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.frac](https://pytorch.org/docs/2.1/generated/torch.frac.html)| [mindspore.mint.frac](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.frac.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.full](https://pytorch.org/docs/2.1/generated/torch.full.html) | [mindspore.mint.full](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.full.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.full_like](https://pytorch.org/docs/2.1/generated/torch.full_like.html)| [mindspore.mint.full_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.full_like.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.gather](https://pytorch.org/docs/2.1/generated/torch.gather.html)| [mindspore.mint.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.gather.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.greater](https://pytorch.org/docs/2.1/generated/torch.greater.html) | [mindspore.mint.greater](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.greater.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.greater_equal](https://pytorch.org/docs/2.1/generated/torch.greater_equal.html) | [mindspore.mint.greater_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.greater_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.gt](https://pytorch.org/docs/2.1/generated/torch.gt.html) | [mindspore.mint.gt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.gt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.histc](https://pytorch.org/docs/2.1/generated/torch.histc.html)| [mindspore.mint.histc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.histc.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.index_select](https://pytorch.org/docs/2.1/generated/torch.index_select.html) | [mindspore.mint.index_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.index_select.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.inverse](https://pytorch.org/docs/2.1/generated/torch.inverse.html) | [mindspore.mint.inverse](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.inverse.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.isclose](https://pytorch.org/docs/2.1/generated/torch.isclose.html) | [mindspore.mint.isclose](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isclose.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.isfinite](https://pytorch.org/docs/2.1/generated/torch.isfinite.html) | [mindspore.mint.isfinite](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isfinite.html) |The functions are consistent, but the parameter data types are inconsistent| +| [torch.isinf](https://pytorch.org/docs/2.1/generated/torch.isinf.html)| [mindspore.mint.isinf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isinf.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.isneginf](https://pytorch.org/docs/2.1/generated/torch.isneginf.html)| [mindspore.mint.isneginf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isneginf.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.le](https://pytorch.org/docs/2.1/generated/torch.le.html) | [mindspore.mint.le](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.le.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.lerp](https://pytorch.org/docs/2.1/generated/torch.lerp.html)| [mindspore.mint.lerp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.lerp.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.less](https://pytorch.org/docs/2.1/generated/torch.less.html) | [mindspore.mint.less](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.less.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.less_equal](https://pytorch.org/docs/2.1/generated/torch.less_equal.html) | [mindspore.mint.less_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.less_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.linspace](https://pytorch.org/docs/2.1/generated/torch.linspace.html) | [mindspore.mint.linspace](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.linspace.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.log](https://pytorch.org/docs/2.1/generated/torch.log.html) | [mindspore.mint.log](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.log2](https://pytorch.org/docs/2.1/generated/torch.log2.html)| [mindspore.mint.log2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log2.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.log10](https://pytorch.org/docs/2.1/generated/torch.log10.html)| [mindspore.mint.log10](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log10.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.logaddexp](https://pytorch.org/docs/2.1/generated/torch.logaddexp.html)| [mindspore.mint.logaddexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logaddexp.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.logsumexp](https://pytorch.org/docs/2.1/generated/torch.logsumexp.html)| [mindspore.mint.logsumexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logsumexp.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.log1p](https://pytorch.org/docs/2.1/generated/torch.log1p.html#torch.log1p) | [mindspore.mint.log1p](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log1p.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.logical_and](https://pytorch.org/docs/2.1/generated/torch.logical_and.html) | [mindspore.mint.logical_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_and.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.logical_not](https://pytorch.org/docs/2.1/generated/torch.logical_not.html) | [mindspore.mint.logical_not](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_not.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.logical_or](https://pytorch.org/docs/2.1/generated/torch.logical_or.html) | [mindspore.mint.logical_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_or.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.logical_xor](https://pytorch.org/docs/2.1/generated/torch.logical_xor.html) | [mindspore.mint.logical_xor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_xor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.lt](https://pytorch.org/docs/2.1/generated/torch.lt.html) | [mindspore.mint.lt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.lt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.masked_select](https://pytorch.org/docs/2.1/generated/torch.masked_select.html) | [mindspore.mint.masked_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.masked_select.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.matmul](https://pytorch.org/docs/2.1/generated/torch.matmul.html#torch.matmul) | [mindspore.mint.matmul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.matmul.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.max](https://pytorch.org/docs/2.1/generated/torch.max.html) | [mindspore.mint.max](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.max.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.maximum](https://pytorch.org/docs/2.1/generated/torch.maximum.html) | [mindspore.mint.maximum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.maximum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.mean](https://pytorch.org/docs/2.1/generated/torch.mean.html) | [mindspore.mint.mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mean.html) |The functions are consistent, but the parameter data types are inconsistent | +| [torch.median](https://pytorch.org/docs/2.1/generated/torch.median.html) | [mindspore.mint.median](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.median.html) |The functions are consistent, but the parameter data types are inconsistent| +| [torch.meshgrid](https://pytorch.org/docs/2.1/generated/torch.meshgrid.html)| [mindspore.mint.meshgrid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.meshgrid.html)|The functions are consistent, but the parameter data types are inconsistent| +| [torch.mul](https://pytorch.org/docs/2.1/generated/torch.mul.html#torch.mul) | [mindspore.mint.mul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mul.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.min](https://pytorch.org/docs/2.1/generated/torch.min.html) | [mindspore.mint.min](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.min.html) | The functions are consistent, but the parameter data types are inconsistent | [mindspore.mint.minimum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.minimum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.mm](https://pytorch.org/docs/2.1/generated/torch.mm.html) | [mindspore.mint.mm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.multinomial](https://pytorch.org/docs/2.1/generated/torch.multinomial.html) | [mindspore.mint.multinomial](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.multinomial.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.mv](https://pytorch.org/docs/2.1/generated/torch.mv.html) | [mindspore.mint.mv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mv.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nansum](https://pytorch.org/docs/2.1/generated/torch.nansum.html) | [mindspore.mint.nansum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nansum.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.nan_to_num](https://pytorch.org/docs/2.1/generated/torch.nan_to_num.html) | [mindspore.mint.nan_to_num](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nan_to_num.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.narrow](https://pytorch.org/docs/2.1/generated/torch.narrow.html) | [mindspore.mint.narrow](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.narrow.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.ne](https://pytorch.org/docs/2.1/generated/torch.ne.html)| [mindspore.mint.ne](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ne.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.neg](https://pytorch.org/docs/2.1/generated/torch.neg.html)| [mindspore.mint.neg](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.neg.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.negative](https://pytorch.org/docs/2.1/generated/torch.negative.html) | [mindspore.mint.negative](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.negative.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nonzero](https://pytorch.org/docs/2.1/generated/torch.nonzero.html) | [mindspore.mint.nonzero](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nonzero.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.normal](https://pytorch.org/docs/2.1/generated/torch.normal.html) | [mindspore.mint.normal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.normal.html) |The functions are consistent, but the parameter data types are inconsistent| +| [torch.norm](https://pytorch.org/docs/2.1/generated/torch.norm.html) | [mindspore.mint.norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.norm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.ones](https://pytorch.org/docs/2.1/generated/torch.ones.html) | [mindspore.mint.ones](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ones.html) |The functions are consistent, but the parameter data types are inconsistent| +| [torch.ones_like](https://pytorch.org/docs/2.1/torch.html#torch.ones_like) | [mindspore.mint.ones_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ones_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.outer](https://pytorch.org/docs/2.1/generated/torch.outer.html) | [mindspore.mint.outer](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.outer.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.permute](https://pytorch.org/docs/2.1/generated/torch.permute.html) | [mindspore.mint.permute](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.permute.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.polar](https://pytorch.org/docs/2.1/generated/torch.polar.html) | [mindspore.mint.polar](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.polar.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.pow](https://pytorch.org/docs/2.1/generated/torch.pow.html#torch.pow) | [mindspore.mint.pow](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.pow.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.prod](https://pytorch.org/docs/2.1/generated/torch.prod.html#torch.prod) | [mindspore.mint.prod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.prod.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.rand](https://pytorch.org/docs/2.1/generated/torch.rand.html) | [mindspore.mint.rand](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.rand.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.rand_like](https://pytorch.org/docs/2.1/generated/torch.rand_like.html) | [mindspore.mint.rand_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.rand_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.randint](https://pytorch.org/docs/2.1/generated/torch.randint.html) | [mindspore.mint.randint](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randint.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.randint_like](https://pytorch.org/docs/2.1/generated/torch.randint_like.html) | [mindspore.mint.randint_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randint_like.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.randn](https://pytorch.org/docs/2.1/generated/torch.randn.html) | [mindspore.mint.randn](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randn.html) |The functions are consistent, but the parameter data types are inconsistent | +| [torch.randn_like](https://pytorch.org/docs/2.1/generated/torch.randn_like.html) | [mindspore.mint.randn_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randn_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.randperm](https://pytorch.org/docs/2.1/generated/torch.randperm.html) | [mindspore.mint.randperm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randperm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.ravel](https://pytorch.org/docs/2.1/generated/torch.ravel.html) | [mindspore.mint.ravel](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ravel.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.reciprocal](https://pytorch.org/docs/2.1/generated/torch.reciprocal.html) | [mindspore.mint.reciprocal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.reciprocal.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.remainder](https://pytorch.org/docs/2.1/generated/torch.remainder.html) | [mindspore.mint.remainder](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.remainder.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.repeat_interleave](https://pytorch.org/docs/2.1/generated/torch.repeat_interleave.html) | [mindspore.mint.repeat_interleave](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.repeat_interleave.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.roll](https://pytorch.org/docs/2.1/generated/torch.roll.html) | [mindspore.mint.roll](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.roll.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.round](https://pytorch.org/docs/2.1/generated/torch.round.html)| [mindspore.mint.round](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.round.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.rsqrt](https://pytorch.org/docs/2.1/generated/torch.rsqrt.html) | [mindspore.mint.rsqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.rsqrt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.scatter](https://pytorch.org/docs/2.1/generated/torch.scatter.html) | [mindspore.mint.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.scatter.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.scatter_add](https://pytorch.org/docs/2.1/generated/torch.scatter_add.html) | [mindspore.mint.scatter_add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.scatter_add.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.searchsorted](https://pytorch.org/docs/2.1/generated/torch.searchsorted.html) | [mindspore.mint.searchsorted](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.searchsorted.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.select](https://pytorch.org/docs/2.1/generated/torch.select.html) | [mindspore.mint.select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.select.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.sigmoid](https://pytorch.org/docs/2.1/generated/torch.sigmoid.html) | [mindspore.mint.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.sign](https://pytorch.org/docs/2.1/generated/torch.sign.html) | [mindspore.mint.sign](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sign.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.sin](https://pytorch.org/docs/2.1/generated/torch.sin.html)| [mindspore.mint.sin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sin.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.sinc](https://pytorch.org/docs/2.1/generated/torch.sinc.html)| [mindspore.mint.sinc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sinc.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.sinh](https://pytorch.org/docs/2.1/generated/torch.sinh.html)| [mindspore.mint.sinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sinh.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.sort](https://pytorch.org/docs/2.1/generated/torch.sort.html) | [mindspore.mint.sort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sort.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.split](https://pytorch.org/docs/2.1/generated/torch.split.html) | [mindspore.mint.split](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.split.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.sqrt](https://pytorch.org/docs/2.1/generated/torch.sqrt.html) | [mindspore.mint.sqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sqrt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.square](https://pytorch.org/docs/2.1/generated/torch.square.html)| [mindspore.mint.square](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.square.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.squeeze](https://pytorch.org/docs/2.1/generated/torch.squeeze.html) | [mindspore.mint.squeeze](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.squeeze.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.stack](https://pytorch.org/docs/2.1/generated/torch.stack.html) | [mindspore.mint.stack](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.stack.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.std](https://pytorch.org/docs/2.1/generated/torch.std.html) | [mindspore.mint.std](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.std.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.std_mean](https://pytorch.org/docs/2.1/generated/torch.std_mean.html) | [mindspore.mint.std_mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.std_mean.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.sub](https://pytorch.org/docs/2.1/generated/torch.sub.html#torch.sub) | [mindspore.mint.sub](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sub.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.sum](https://pytorch.org/docs/2.1/generated/torch.sum.html) | [mindspore.mint.sum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sum.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.swapaxes](https://pytorch.org/docs/2.1/generated/torch.swapaxes.html) | [mindspore.mint.swapaxes](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.swapaxes.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.t](https://pytorch.org/docs/2.1/generated/torch.t.html) | [mindspore.mint.t](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.t.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.tan](https://pytorch.org/docs/2.1/generated/torch.tan.html)| [mindspore.mint.tan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tan.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.tanh](https://pytorch.org/docs/2.1/generated/torch.tanh.html) | [mindspore.mint.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.tile](https://pytorch.org/docs/2.1/generated/torch.tile.html) | [mindspore.mint.tile](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tile.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.topk](https://pytorch.org/docs/2.1/generated/torch.topk.html#torch.topk) | [mindspore.mint.topk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.topk.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.trace](https://pytorch.org/docs/2.1/generated/torch.trace.html) | [mindspore.mint.trace](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.trace.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.transpose](https://pytorch.org/docs/2.1/generated/torch.transpose.html) | [mindspore.mint.transpose](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.transpose.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.tril](https://pytorch.org/docs/2.1/generated/torch.tril.html) | [mindspore.mint.tril](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tril.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.triu](https://pytorch.org/docs/2.1/generated/torch.triu.html) | [mindspore.mint.triu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.triu.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.trunc](https://pytorch.org/docs/2.1/generated/torch.trunc.html)| [mindspore.mint.trunc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.trunc.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.unbind](https://pytorch.org/docs/2.1/generated/torch.unbind.html) | [mindspore.mint.unbind](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.unbind.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.unique](https://pytorch.org/docs/2.1/generated/torch.unique.html#torch.unique) | [mindspore.mint.unique](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.unique.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.unique_consecutive](https://pytorch.org/docs/2.1/generated/torch.unique_consecutive.html) | [mindspore.mint.unique_consecutive](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.unique_consecutive.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.var](https://pytorch.org/docs/2.1/generated/torch.var.html) | [mindspore.mint.var](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.var.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.var_mean](https://pytorch.org/docs/2.1/generated/torch.var_mean.html) | [mindspore.mint.var_mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.var_mean.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.where](https://pytorch.org/docs/2.1/generated/torch.where.html) | [mindspore.mint.where](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.where.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.xlogy](https://pytorch.org/docs/2.1/generated/torch.xlogy.html) | [mindspore.mint.xlogy](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.xlogy.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.zeros](https://pytorch.org/docs/2.1/generated/torch.zeros.html) | [mindspore.mint.zeros](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.zeros.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.zeros_like](https://pytorch.org/docs/2.1/generated/torch.zeros_like.html#torch-zeros-like) | [mindspore.mint.zeros_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.zeros_like.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | ## torch.distributed -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| ------------------------------------------------------------ | ------------------------------------------------------------ |----------------------------------------------------------------------------------------------------------| -| [torch.distributed.all_gather](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.all_gather) | [mindspore.communication.comm_func.all_gather_into_tensor](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.all_gather_into_tensor.html#mindspore.communication.comm_func.all_gather_into_tensor) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/all_gather.html) | -| [torch.distributed.all_reduce](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.all_reduce) | [mindspore.communication.comm_func.all_reduce](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.all_reduce.html#mindspore.communication.comm_func.all_reduce) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/all_reduce.html) | -| [torch.distributed.scatter](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.scatter) | [mindspore.communication.comm_func.scatter_tensor](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.scatter_tensor.html#mindspore.communication.comm_func.scatter_tensor) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/distributed.scatter.html) | -| [torch.distributed.gather](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.gather) | [mindspore.communication.comm_func.gather_into_tensor](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.gather_into_tensor.html#mindspore.communication.comm_func.gather_into_tensor) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/distributed.gather.html) | -| [torch.distributed.barrier](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.barrier) | [mindspore.communication.comm_func.barrier](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.barrier.html#mindspore.communication.comm_func.barrier) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/distributed.barrier.html) | -| [torch.distributed.broadcast](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.broadcast) | [mindspore.communication.comm_func.broadcast](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.broadcast.html#mindspore.communication.comm_func.broadcast) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/distributed.broadcast.html) | -| [torch.distributed.get_rank](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.get_rank) | [mindspore.communication.get_rank](https://mindspore.cn/docs/en/master/api_python/mindspore.communication.html#mindspore.communication.get_rank) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/get_rank.html) | -| [torch.distributed.init_process_group](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.init_process_group) | [mindspore.communication.init](https://mindspore.cn/docs/en/master/api_python/mindspore.communication.html#mindspore.communication.init) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/init.html) | -| [torch.distributed.new_group](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.new_group) | [mindspore.communication.create_group](https://mindspore.cn/docs/en/master/api_python/mindspore.communication.html#mindspore.communication.create_group) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/create_group.html) | -| [torch.distributed.reduce_scatter](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.reduce_scatter) | [mindspore.communication.comm_func.reduce_scatter_tensor](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.reduce_scatter_tensor.html#mindspore.communication.comm_func.reduce_scatter_tensor) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/reduce_scatter_tensor.html) | -| [torch.distributed.reduce](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.reduce) | [mindspore.communication.comm_func.reduce](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.reduce.html#mindspore.communication.comm_func.reduce) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/reduce.html) | - -| PyTorch 2.0.0 APIs | MindSpore APIs | Descriptions | +| PyTorch 2.1 APIs | MindSpore APIs | Descriptions | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.distributed.all_to_all_single](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.all_to_all_single) | [mindspore.communication.comm_func.all_to_all_single_with_output_shape](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.all_to_all_single_with_output_shape.html#mindspore.communication.comm_func.all_to_all_single_with_output_shape) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/all_to_all_single_with_output_shape.html) | -| [torch.distributed.all_to_all](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.all_to_all) | [mindspore.communication.comm_func.all_to_all_with_output_shape](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.all_to_all_with_output_shape.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/all_to_all_with_output_shape.html) | -| [torch.distributed.batch_isend_irecv](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.batch_isend_irecv) | [mindspore.communication.comm_func.batch_isend_irecv](https://www.mindspore.cn/docs/en/master/api_python/communication/mindspore.communication.comm_func.batch_isend_irecv.html#mindspore.communication.comm_func.batch_isend_irecv) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.distributed.P2POp](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.P2POp) | [mindspore.communication.comm_func.P2POp](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.P2POp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.distributed.isend](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.isend) | [mindspore.communication.comm_func.isend](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.isend.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.distributed.irecv](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.irecv) | [mindspore.communication.comm_func.irecv](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.irecv.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.P2POp](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.P2POp) | [mindspore.mint.distributed.P2POp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.P2POp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.all_gather](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_gather) | [mindspore.mint.distributed.all_gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_gather.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.all_gather_into_tensor](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_gather_into_tensor) | [mindspore.mint.distributed.all_gather_into_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_gather_into_tensor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.all_gather_object](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_gather_object) | [mindspore.mint.distributed.all_gather_object](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_gather_object.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.all_reduce](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_reduce) | [mindspore.mint.distributed.all_reduce](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_reduce.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.all_to_all_single](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_to_all_single) | [mindspore.mint.distributed.all_to_all_single](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_to_all_single.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.all_to_all](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_to_all) | [mindspore.mint.distributed.all_to_all](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_to_all.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.barrier](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.barrier) | [mindspore.mint.distributed.barrier](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.barrier.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.batch_isend_irecv](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.batch_isend_irecv) | [mindspore.mint.distributed.batch_isend_irecv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.batch_isend_irecv.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.broadcast](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.broadcast) | [mindspore.mint.distributed.broadcast](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.broadcast.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.distributed.broadcast_object_list](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.broadcast_object_list) | [mindspore.mint.distributed.distributed.broadcast_object_list](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.broadcast_object_list.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| []() | [mindspore.mint.distributed.destroy_process_group](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.destroy_process_group.html) | Unique to Mindpore| +| [torch.distributed.gather](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.gather) | [mindspore.mint.distributed.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.gather.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.gather_object](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.gather_object) | [mindspore.mint.distributed.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.gather_object.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.get_backend](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_backend) | [mindspore.mint.distributed.get_backend](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_backend.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.get_global_rank](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_global_rank) | [mindspore.mint.distributed.get_global_rank](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_global_rank.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.get_group_rank](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_group_rank) | [mindspore.mint.distributed.get_group_rank](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_group_rank.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.get_process_group_ranks](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_process_group_ranks) | [mindspore.mint.distributed.get_process_group_ranks](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_process_group_ranks.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.get_rank](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_rank) | [mindspore.mint.distributed.get_rank](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_rank.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.get_world_size](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_world_size) | [mindspore.mint.distributed.get_world_size](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_world_size.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.init_process_group](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.init_process_group) | [mindspore.mint.distributed.init_process_group](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.init_process_group.html) |The functions are consistent, but the parameter data types are inconsistent | +| [torch.distributed.irecv](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.irecv) | [mindspore.mint.distributed.irecv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.irecv.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.isend](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.isend) | [mindspore.mint.distributed.isend](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.isend.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.distributed.new_group](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.new_group) | [mindspore.mint.distributed.new_group](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.new_group.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.distributed.recv](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.recv) | [mindspore.mint.distributed.recv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.recv.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.reduce](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.reduce) | [mindspore.mint.distributed.reduce](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.reduce.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.reduce_scatter](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.reduce_scatter) | [mindspore.mint.distributed.reduce_scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.reduce_scatter.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.reduce_scatter_tensor](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.reduce_scatter_tensor) | [mindspore.mint.distributed.reduce_scatter_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.reduce_scatter_tensor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.scatter](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.scatter) | [mindspore.mint.distributed.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.scatter.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.distributed.scatter_object_list](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.scatter_object_list) | [mindspore.mint.distributed.scatter_object_list](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.scatter_object_list.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.distributed.send](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.send) | [mindspore.mint.distributed.send](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.send.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| ## torch.nn -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | +| PyTorch 2.1 APIs | MindSpore APIs | Descriptions | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.nn.AdaptiveAvgPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveAvgPool1d.html) | [mindspore.nn.AdaptiveAvgPool1d](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdaptiveAvgPool1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AdaptiveAvgPool1d.html) | -| [torch.nn.AdaptiveAvgPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveAvgPool2d.html) | [mindspore.nn.AdaptiveAvgPool2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdaptiveAvgPool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.AdaptiveAvgPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveAvgPool3d.html) | [mindspore.nn.AdaptiveAvgPool3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdaptiveAvgPool3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.AdaptiveMaxPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveMaxPool1d.html) | [mindspore.nn.AdaptiveMaxPool1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdaptiveMaxPool1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AdaptiveMaxPool1d.html) | -| [torch.nn.AdaptiveMaxPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveMaxPool2d.html) | [mindspore.nn.AdaptiveMaxPool2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdaptiveMaxPool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.AdaptiveMaxPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveMaxPool3d.html) | [mindspore.nn.AdaptiveMaxPool3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdaptiveMaxPool3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.AvgPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AvgPool1d.html) | [mindspore.nn.AvgPool1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AvgPool1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AvgPool1d.html) | -| [torch.nn.AvgPool2d](https://PyTorch.org/docs/1.8.1/generated/torch.nn.AvgPool2d.html) | [mindspore.nn.AvgPool2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AvgPool2d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AvgPool2d.html) | -| [torch.nn.AvgPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AvgPool3d.html) | [mindspore.nn.AvgPool3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AvgPool3d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AvgPool3d.html)| -| [torch.nn.BCELoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.BCELoss.html) | [mindspore.nn.BCELoss](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.BCELoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.BCEWithLogitsLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.BCEWithLogitsLoss.html) | [mindspore.nn.BCEWithLogitsLoss](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.BCEWithLogitsLoss.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/BCEWithLogitsLoss.html) | -| [torch.nn.BatchNorm1d](https://pytorch.org/docs/1.8.1/nn.html#torch.nn.BatchNorm1d) | [mindspore.nn.BatchNorm1d](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.BatchNorm1d.html#mindspore.nn.BatchNorm1d) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/BatchNorm1d.html) | -| [torch.nn.BatchNorm2d](https://pytorch.org/docs/1.8.1/nn.html#torch.nn.BatchNorm2d) | [mindspore.nn.BatchNorm2d](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.BatchNorm2d.html#mindspore.nn.BatchNorm2d) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/BatchNorm2d.html) | -| [torch.nn.BatchNorm3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.BatchNorm3d.html) | [mindspore.nn.BatchNorm3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.BatchNorm3d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/BatchNorm3d.html) | -| [torch.nn.Bilinear](https://pytorch.org/docs/1.8.1/generated/torch.nn.Bilinear.html) | [mindspore.nn.BiDense](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.BiDense.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/BiDense.html) | -| [torch.nn.CeLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.CELU.html) | [mindspore.nn.CELU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.CELU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ChannelShuffle](https://pytorch.org/docs/1.8.1/generated/torch.nn.ChannelShuffle.html) | [mindspore.nn.ChannelShuffle](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ChannelShuffle.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.CTCLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.CTCLoss.html) | [mindspore.nn.CTCLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.CTCLoss.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ConstantPad1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConstantPad1d.html) | [mindspore.nn.ConstantPad1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ConstantPad1d.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ConstantPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConstantPad2d.html) | [mindspore.nn.ConstantPad2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ConstantPad2d.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ConstantPad3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConstantPad3d.html) | [mindspore.nn.ConstantPad3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ConstantPad3d.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Conv1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Conv1d.html) | [mindspore.nn.Conv1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Conv1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Conv1d.html) | -| [torch.nn.Conv2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Conv2d.html) | [mindspore.nn.Conv2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Conv2d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Conv2d.html) | -| [torch.nn.Conv3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Conv3d.html) | [mindspore.nn.Conv3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Conv3d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Conv3d.html) | -| [torch.nn.ConvTranspose1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConvTranspose1d.html) | [mindspore.nn.Conv1dTranspose](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Conv1dTranspose.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Conv1dTranspose.html) | -| [torch.nn.ConvTranspose2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConvTranspose2d.html) | [mindspore.nn.Conv2dTranspose](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Conv2dTranspose.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Conv2dTranspose.html) | -| [torch.nn.ConvTranspose3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConvTranspose3d.html) | [mindspore.nn.Conv3dTranspose](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Conv3dTranspose.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Conv3dTranspose.html) | -| [torch.nn.CosineEmbeddingLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.CosineEmbeddingLoss.html) | [mindspore.nn.CosineEmbeddingLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.CosineEmbeddingLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.CrossEntropyLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.CrossEntropyLoss.html) | [mindspore.nn.CrossEntropyLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.CrossEntropyLoss.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/CrossEntropyLoss.html) | -| [torch.nn.Dropout](https://pytorch.org/docs/1.8.1/generated/torch.nn.Dropout.html) | [mindspore.nn.Dropout](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Dropout.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Dropout.html) | -| [torch.nn.Dropout2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Dropout2d.html#torch.nn.Dropout2d) | [mindspore.nn.Dropout2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Dropout2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Dropout3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Dropout3d.html#torch.nn.Dropout3d) | [mindspore.nn.Dropout3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Dropout3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ELU](https://pytorch.org/docs/1.8.1/generated/torch.nn.ELU.html) | [mindspore.nn.ELU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ELU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Flatten](https://pytorch.org/docs/1.8.1/generated/torch.nn.Flatten.html) | [mindspore.nn.Flatten](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Flatten.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.GaussianNLLLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.GaussianNLLLoss.html) | [mindspore.nn.GaussianNLLLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.GaussianNLLLoss.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/GaussianNLLLoss.html) | -| [torch.nn.GELU](https://pytorch.org/docs/1.8.1/generated/torch.nn.GELU.html) | [mindspore.nn.GELU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.GELU.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/GELU.html) | -| [torch.nn.GRU](https://pytorch.org/docs/1.8.1/generated/torch.nn.GRU.html#torch.nn.GRU) | [mindspore.nn.GRU](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.GRU.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/GRU.html) | -| [torch.nn.GRUCell](https://pytorch.org/docs/1.8.1/generated/torch.nn.GRUCell.html) | [mindspore.nn.GRUCell](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.GRUCell.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/GRUCell.html) | -| [torch.nn.GroupNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.GroupNorm.html) | [mindspore.nn.GroupNorm](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.GroupNorm.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/GroupNorm.html) | -| [torch.nn.Hardshrink](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardshrink.html#torch.nn.Hardshrink) | [mindspore.nn.HShrink](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.HShrink.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/HShrink.html) | -| [torch.nn.Hardsigmoid](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardsigmoid.html) | [mindspore.nn.Hsigmoid](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.HSigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.Hardswish](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardswish.html) | [mindspore.nn.Hswish](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.HSwish.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Hardtanh](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardtanh.html) | [mindspore.nn.Hardtanh](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Hardtanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.HingeEmbeddingLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.HingeEmbeddingLoss.html) | [mindspore.nn.HingeEmbeddingLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.HingeEmbeddingLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.HuberLoss](https://pytorch.org/docs/stable/generated/torch.nn.HuberLoss.html) | [mindspore.nn.HuberLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.HuberLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Identity](https://pytorch.org/docs/1.8.1/generated/torch.nn.Identity.html) | [mindspore.nn.Identity](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Identity.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.nn.init.uniform_](https://pytorch.org/docs/1.8.1/nn.init.html#torch.nn.init.uniform_) | [mindspore.ops.uniform](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.uniform.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Uniform.html) | -| [torch.nn.InstanceNorm1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.InstanceNorm1d.html) | [mindspore.nn.InstanceNorm1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.InstanceNorm1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/InstanceNorm1d.html) | -| [torch.nn.InstanceNorm2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.InstanceNorm2d.html) | [mindspore.nn.InstanceNorm2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.InstanceNorm2d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/InstanceNorm2d.html) | -| [torch.nn.InstanceNorm3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.InstanceNorm3d.html) | [mindspore.nn.InstanceNorm3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.InstanceNorm3d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/InstanceNorm3d.html)| -| [torch.nn.KLDivLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.KLDivLoss.html) | [mindspore.nn.KLDivLoss](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.KLDivLoss.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.L1Loss](https://pytorch.org/docs/1.8.1/generated/torch.nn.L1Loss.html#torch.nn.L1Loss) | [mindspore.nn.L1Loss](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.L1Loss.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.LayerNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.LayerNorm.html) | [mindspore.nn.LayerNorm](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LayerNorm.html) |[diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/LayerNorm.html) | -| [torch.nn.LeakyReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.LeakyReLU.html)| [mindspore.nn.LeakyReLU](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LeakyReLU.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/LeakyReLU.html) | -| [torch.nn.LPPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.LPPool1d.html) | [mindspore.nn.LPPool1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LPPool1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.LPPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.LPPool2d.html) | [mindspore.nn.LPPool2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LPPool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.LSTM](https://pytorch.org/docs/1.8.1/generated/torch.nn.LSTM.html) | [mindspore.nn.LSTM](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LSTM.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/LSTM.html) | -| [torch.nn.LSTMCell](https://pytorch.org/docs/1.8.1/generated/torch.nn.LSTMCell.html?torch.nn.LSTMCell) | [mindspore.nn.LSTMCell](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LSTMCell.html) |[diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/LSTMCell.html) | -| [torch.nn.Linear](https://pytorch.org/docs/1.8.1/generated/torch.nn.Linear.html) | [mindspore.nn.Dense](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Dense.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Dense.html) | -| [torch.nn.LocalResponseNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.LocalResponseNorm.html) | [mindspore.nn.LRN](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LRN.html) |[diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/LRN.html) | -| [torch.nn.LogSigmoid](https://pytorch.org/docs/1.8.1/generated/torch.nn.LogSigmoid.html) | [mindspore.nn.LogSigmoid](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LogSigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.LogSoftMax](https://pytorch.org/docs/1.8.1/generated/torch.nn.LogSoftmax.html) | [mindspore.nn.LogSoftMax](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LogSoftmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.MSELoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MSELoss.html) | [mindspore.nn.MSELoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MSELoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.MarginRankingLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MarginRankingLoss.html) | [mindspore.nn.MarginRankingLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MarginRankingLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.MaxPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxPool1d.html) | [mindspore.nn.MaxPool1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MaxPool1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/MaxPool1d.html) | -| [torch.nn.MaxPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxPool2d.html) | [mindspore.nn.MaxPool2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MaxPool2d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/MaxPool2d.html) | -| [torch.nn.MaxPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxPool3d.html) | [mindspore.nn.MaxPool3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MaxPool3d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/MaxPool3d.html)| -| [torch.nn.MaxUnpool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxUnpool1d.html) | [mindspore.nn.MaxUnpool1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MaxUnpool1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.MaxUnpool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxUnpool2d.html) | [mindspore.nn.MaxUnpool2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MaxUnpool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.MaxUnpool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxUnpool3d.html) | [mindspore.nn.MaxUnpool3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MaxUnpool3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.ModuleDict](https://pytorch.org/docs/1.8.1/nn.html#torch.nn.ModuleDict) | [mindspore.nn.CellDict](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.CellDict.html#mindspore.nn.CellDict) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/CellDict.html) | -| [torch.nn.ModuleList](https://pytorch.org/docs/1.8.1/nn.html#torch.nn.ModuleList) | [mindspore.nn.CellList](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.CellList.html#mindspore.nn.CellList) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.MultiheadAttention](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiheadAttention.html)| [mindspore.nn.MultiheadAttention](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MultiheadAttention.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/MultiheadAttention.html) | -| [torch.nn.MultiLabelMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiLabelMarginLoss.html) | [mindspore.nn.MultiLabelMarginLoss](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MultilabelMarginLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.MultiLabelSoftMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiLabelSoftMarginLoss.html) | [mindspore.nn.MultiLabelSoftMarginLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MultiLabelSoftMarginLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.MultiMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiMarginLoss.html) | [mindspore.nn.MultiMarginLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.MultiMarginLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.NLLLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.NLLLoss.html) | [mindspore.nn.NLLLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.NLLLoss.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/NLLLoss.html) | -| [torch.nn.parameter.Parameter](https://pytorch.org/docs/1.8.1/generated/torch.nn.parameter.Parameter.html) | [mindspore.Parameter](https://mindspore.cn/docs/en/master/api_python/mindspore/mindspore.Parameter.html#mindspore.Parameter) |[diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Parameter.html)| -| [torch.nn.PReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.PReLU.html) | [mindspore.nn.PReLU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.PReLU.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/PReLU.html) | -| [torch.nn.PixelShuffle](https://pytorch.org/docs/1.8.1/generated/torch.nn.PixelShuffle.html) | [mindspore.nn.PixelShuffle](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.PixelShuffle.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.PixelUnshuffle](https://pytorch.org/docs/1.8.1/generated/torch.nn.PixelUnshuffle.html) | [mindspore.nn.PixelUnshuffle](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.PixelUnshuffle.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.PoissonNLLLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.PoissonNLLLoss.html) | [mindspore.nn.PoissonNLLLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.PoissonNLLLoss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ReflectionPad1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReflectionPad1d.html) | [mindspore.nn.ReflectionPad1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ReflectionPad1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ReflectionPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReflectionPad2d.html) | [mindspore.nn.ReflectionPad2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ReflectionPad2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReLU.html) | [mindspore.nn.ReLU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ReLU.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/ReLU.html) | -| [torch.nn.ReLU6](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReLU6.html) | [mindspore.nn.ReLU6](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ReLU6.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ReplicationPad1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReplicationPad1d.html) | [mindspore.nn.ReplicationPad1d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ReplicationPad1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ReplicationPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReplicationPad2d.html) | [mindspore.nn.ReplicationPad2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ReplicationPad2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.ReplicationPad3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReplicationPad3d.html) | [mindspore.nn.ReplicationPad3d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ReplicationPad3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.RNN](https://pytorch.org/docs/1.8.1/generated/torch.nn.RNN.html) | [mindspore.nn.RNN](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.RNN.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/RNN.html) | -| [torch.nn.RNNCell](https://pytorch.org/docs/1.8.1/generated/torch.nn.RNNCell.html) | [mindspore.nn.RNNCell](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.RNNCell.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/RNNCell.html) | -| [torch.nn.RReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.RReLU.html) | [mindspore.nn.RReLU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.RReLU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.SeLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.SELU.html) | [mindspore.nn.SeLU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SeLU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Sequential](https://pytorch.org/docs/1.8.1/generated/torch.nn.Sequential.html) | [mindspore.nn.SequentialCell](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SequentialCell.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/SequentialCell.html) | -| [torch.nn.Sigmoid](https://pytorch.org/docs/1.8.1/generated/torch.nn.Sigmoid.html) | [mindspore.nn.Sigmoid](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Sigmoid.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Sigmoid.html) | -| [torch.nn.SiLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.SiLU.html) | [mindspore.nn.SiLU](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SiLU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.SmoothL1Loss](https://pytorch.org/docs/1.8.1/generated/torch.nn.SmoothL1Loss.html) | [mindspore.nn.SmoothL1Loss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SmoothL1Loss.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/SmoothL1Loss.html) | -| [torch.nn.SoftMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.SoftMarginLoss.html) | [mindspore.nn.SoftMarginLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SoftMarginLoss.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Softmax](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softmax.html) | [mindspore.nn.Softmax](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Softmax.html) |[diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/nn_Softmax.html) | -| [torch.nn.Softmin](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softmin.html) | [mindspore.nn.Softmin](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Softmin.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/softmin.html) | -| [torch.nn.Softmax2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softmax2d.html) | [mindspore.nn.Softmax2d]( https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Softmax2d.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Softshrink](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softshrink.html) | [mindspore.nn.SoftShrink](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SoftShrink.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/SoftShrink.html) | -| [torch.nn.Softsign](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softsign.html) | [mindspore.nn.Softsign](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Softsign.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.SyncBatchNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.SyncBatchNorm.html) | [mindspore.nn.SyncBatchNorm](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SyncBatchNorm.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/SyncBatchNorm.html) | -| [torch.nn.Tanh](https://pytorch.org/docs/1.8.1/generated/torch.nn.Tanh.html) | [mindspore.nn.Tanh](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Tanh.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Tanh.html) | -| [torch.nn.Tanhshrink](https://pytorch.org/docs/1.8.1/generated/torch.nn.Tanhshrink.html) | [mindspore.nn.Tanhshrink](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Tanhshrink.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Threshold](https://pytorch.org/docs/1.8.1/generated/torch.nn.Threshold.html) | [mindspore.nn.Threshold](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Threshold.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.Transformer](https://pytorch.org/docs/1.8.1/generated/torch.nn.Transformer.html)| [mindspore.nn.Transformer](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Transformer.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Transformer.html) | -| [torch.nn.TransformerDecoder](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerDecoder.html)| [mindspore.nn.TransformerDecoder](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.TransformerDecoder.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/TransformerDecoder.html) | -| [torch.nn.TransformerEncoder](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerEncoder.html)| [mindspore.nn.TransformerEncoder](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.TransformerEncoder.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/TransformerEncoder.html) | -| [torch.nn.TransformerDecoderLayer](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerDecoderLayer.html)| [mindspore.nn.TransformerDecoderLayer](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.TransformerDecoderLayer.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/TransformerDecoderLayer.html)| -| [torch.nn.TransformerEncoderLayer](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerEncoderLayer.html)| [mindspore.nn.TransformerEncoderLayer](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.TransformerEncoderLayer.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/TransformerEncoderLayer.html)| -| [torch.nn.TripletMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.TripletMarginLoss.html) | [mindspore.nn.TripletMarginLoss](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.TripletMarginLoss.html) | [The functions are consistent, but the number or sequence of parameters is inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/TripletMarginLoss.html) | -| [torch.nn.Unflatten](https://pytorch.org/docs/1.8.1/generated/torch.nn.Unflatten.html) | [mindspore.nn.Unflatten](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Unflatten.html) |The functions are consistent, but the parameter names are inconsistent.| -| [torch.nn.Unfold](https://pytorch.org/docs/1.8.1/generated/torch.nn.Unfold.html) | [mindspore.nn.Unfold](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Unfold.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Unfold.html) | -| [torch.nn.Upsample](https://pytorch.org/docs/1.8.1/generated/torch.nn.Upsample.html) | [mindspore.nn.Upsample](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Upsample.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/interpolate.html) | -| [torch.nn.ZeroPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ZeroPad2d.html) | [mindspore.nn.ZeroPad2d](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ZeroPad2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.AdaptiveAvgPool1d](https://PyTorch.org/docs/2.1/generated/torch.nn.AdaptiveAvgPool1d.html) | [mindspore.mint.nn.AdaptiveAvgPool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.AdaptiveAvgPool1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.AdaptiveAvgPool2d](https://PyTorch.org/docs/2.1/generated/torch.nn.AdaptiveAvgPool2d.html) | [mindspore.mint.nn.AdaptiveAvgPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.AdaptiveAvgPool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.AvgPool2d](https://PyTorch.org/docs/2.1/generated/torch.nn.AvgPool2d.html) | [mindspore.mint.nn.AvgPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.AvgPool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.BCELoss](https://PyTorch.org/docs/2.1/generated/torch.nn.BCELoss.html) | [mindspore.mint.nn.BCELoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BCELoss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.BCEWithLogitsLoss](https://pytorch.org/docs/2.1/generated/torch.nn.BCEWithLogitsLoss.html) | [mindspore.mint.nn.BCEWithLogitsLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BCEWithLogitsLoss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.BatchNorm1d](https://PyTorch.org/docs/2.1/generated/torch.nn.BatchNorm1d.html) | [mindspore.mint.nn.BatchNorm1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BatchNorm1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.BatchNorm2d](https://PyTorch.org/docs/2.1/generated/torch.nn.BatchNorm2d.html) | [mindspore.mint.nn.BatchNorm2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BatchNorm2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.BatchNorm3d](https://PyTorch.org/docs/2.1/generated/torch.nn.BatchNorm3d.html) | [mindspore.mint.nn.BatchNorm3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BatchNorm3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.ConstantPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ConstantPad1d.html) | [mindspore.mint.nn.ConstantPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConstantPad1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ConstantPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ConstantPad2d.html) | [mindspore.mint.nn.ConstantPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConstantPad2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ConstantPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ConstantPad3d.html) | [mindspore.mint.nn.ConstantPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConstantPad3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Conv3d](https://pytorch.org/docs/2.1/generated/torch.nn.Conv3d.html) | [mindspore.mint.nn.Conv3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Conv3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ConvTranspose2d](https://pytorch.org/docs/2.1/generated/torch.nn.ConvTranspose2d.html) | [mindspore.mint.nn.ConvTranspose2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConvTranspose2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.CrossEntropyLoss](https://pytorch.org/docs/2.1/generated/torch.nn.CrossEntropyLoss.html) | [mindspore.mint.nn.CrossEntropyLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.CrossEntropyLoss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.Dropout](https://pytorch.org/docs/2.1/generated/torch.nn.Dropout.html) | [mindspore.mint.nn.Dropout](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Dropout.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Dropout2d](https://pytorch.org/docs/2.1/generated/torch.nn.Dropout2d.html) | [mindspore.mint.nn.Dropout2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Dropout2d.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.ELU](https://pytorch.org/docs/2.1/generated/torch.nn.ELU.html) | [mindspore.mint.nn.ELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ELU.html) | The functions are consistent, but the parameter data types are inconsistent| +| [torch.nn.Embedding](https://pytorch.org/docs/2.1/generated/torch.nn.Embedding.html) | [mindspore.mint.nn.Embedding](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Embedding.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Flatten](https://pytorch.org/docs/2.1/generated/torch.nn.Flatten.html) | [mindspore.mint.flatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.flatten.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Fold](https://pytorch.org/docs/2.1/generated/torch.nn.Fold.html) | [mindspore.mint.nn.Fold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Fold.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.GroupNorm](https://pytorch.org/docs/2.1/generated/torch.nn.GroupNorm.html) | [mindspore.mint.nn.Fold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.GroupNorm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.GELU](https://pytorch.org/docs/2.1/generated/torch.nn.GELU.html) | [mindspore.mint.nn.GELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.GELU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.GroupNorm](https://pytorch.org/docs/2.1/generated/torch.nn.GroupNorm.html) | [mindspore.mint.nn.GroupNorm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.GroupNorm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Hardshrink](https://pytorch.org/docs/2.1/generated/torch.nn.Hardshrink.html#torch.nn.Hardshrink) | [mindspore.mint.nn.Hardshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Hardshrink.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Hardsigmoid](https://pytorch.org/docs/2.1/generated/torch.nn.Hardsigmoid.html) | [mindspore.mint.nn.Hardsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Hardsigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Hardswish](https://pytorch.org/docs/2.1/generated/torch.nn.Hardswish.html) | [mindspore.mint.nn.Hardswish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Hardswish.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Identity](https://pytorch.org/docs/2.1/generated/torch.nn.Identity.html) | [mindspore.mint.nn.Identity](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Identity.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.L1Loss](https://pytorch.org/docs/2.1/generated/torch.nn.L1Loss.html#torch.nn.L1Loss) | [mindspore.mint.nn.L1Loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.L1Loss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.LayerNorm](https://pytorch.org/docs/2.1/generated/torch.nn.LayerNorm.html) | [mindspore.mint.nn.LayerNorm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.LayerNorm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Linear](https://pytorch.org/docs/2.1/generated/torch.nn.Linear.html) | [mindspore.mint.nn.Linear](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Linear.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.LogSigmoid](https://pytorch.org/docs/2.1/generated/torch.nn.LogSigmoid.html) | [mindspore.mint.nn.LogSigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.LogSigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.LogSoftMax](https://pytorch.org/docs/2.1/generated/torch.nn.LogSoftmax.html) | [mindspore.mint.nn.LogSoftmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.LogSoftmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.MSELoss](https://pytorch.org/docs/2.1/generated/torch.nn.MSELoss.html) | [mindspore.mint.nn.MSELoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.MSELoss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.MaxUnpool2d](https://pytorch.org/docs/2.1/generated/torch.nn.MaxUnpool2d.html) | [mindspore.mint.nn.MaxUnpool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.MaxUnpool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Mish](https://pytorch.org/docs/2.1/generated/torch.nn.Mish.html) | [mindspore.mint.nn.Mish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Mish.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.NLLLoss](https://pytorch.org/docs/2.1/generated/torch.nn.NLLLoss.html) | [mindspore.mint.nn.NLLLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.NLLLoss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.PReLU](https://pytorch.org/docs/2.1/generated/torch.nn.PReLU.html) | [mindspore.mint.nn.PReLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.PReLU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ReLU](https://pytorch.org/docs/2.1/generated/torch.nn.ReLU.html) | [mindspore.mint.nn.ReLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReLU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.ReLU6](https://pytorch.org/docs/2.1/generated/torch.nn.ReLU6.html) | [mindspore.mint.nn.ReLU6](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReLU6.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ReflectionPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ReflectionPad1d.html) | [mindspore.mint.nn.ReflectionPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReflectionPad1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ReflectionPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ReflectionPad2d.html) | [mindspore.mint.nn.ReflectionPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReflectionPad2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ReflectionPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ReflectionPad3d.html) | [mindspore.mint.nn.ReflectionPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReflectionPad3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ReplicationPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ReplicationPad1d.html) | [mindspore.mint.nn.ReplicationPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReplicationPad1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ReplicationPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ReplicationPad2d.html) | [mindspore.mint.nn.ReplicationPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReplicationPad2d.rst.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ReplicationPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ReplicationPad3d.html) | [mindspore.mint.nn.ReplicationPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReplicationPad3d.rst.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.SeLU](https://pytorch.org/docs/2.1/generated/torch.nn.SELU.html) | [mindspore.mint.nn.SELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SELU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.SiLU](https://pytorch.org/docs/2.1/generated/torch.nn.SiLU.html) | [mindspore.mint.nn.SiLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SiLU.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.SmoothL1Loss](https://pytorch.org/docs/2.1/generated/torch.nn.SmoothL1Loss.html) | [mindspore.mint.nn.SmoothL1Loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SmoothL1Loss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.Softmax](https://pytorch.org/docs/2.1/generated/torch.nn.Softmax.html) | [mindspore.mint.nn.Softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Softmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.Softshrink](https://pytorch.org/docs/2.1/generated/torch.nn.Softshrink.html) | [mindspore.mint.nn.Softshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Softshrink.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.SyncBatchNorm](https://pytorch.org/docs/2.1/generated/torch.nn.SyncBatchNorm.html) | [mindspore.mint.nn.SyncBatchNorm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SyncBatchNorm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Tanh](https://pytorch.org/docs/2.1/generated/torch.nn.Tanh.html) | [mindspore.mint.nn.Tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Tanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.Unfold](https://pytorch.org/docs/2.1/generated/torch.nn.Unfold.html) | [mindspore.mint.nn.Unfold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Unfold.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.Upsample](https://pytorch.org/docs/2.1/generated/torch.nn.Upsample.html) | [mindspore.mint.nn.Upsample](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Upsample.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ZeroPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ZeroPad1d.html) | [mindspore.mint.nn.ZeroPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ZeroPad1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ZeroPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ZeroPad2d.html) | [mindspore.mint.nn.ZeroPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ZeroPad2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.ZeroPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ZeroPad3d.html) | [mindspore.mint.nn.ZeroPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ZeroPad3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | ## torch.nn.functional -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | +| PyTorch 2.1 APIs | MindSpore APIs | Descriptions | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.nn.functional.adaptive_avg_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool1d) | [mindspore.ops.adaptive_avg_pool1d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.adaptive_avg_pool1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AdaptiveAvgPool1d.html) | -| [torch.nn.functional.adaptive_avg_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool2d) | [mindspore.ops.adaptive_avg_pool2d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.adaptive_avg_pool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.adaptive_avg_pool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool3d) | [mindspore.ops.adaptive_avg_pool3d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.adaptive_avg_pool3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.adaptive_max_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_max_pool1d) | [mindspore.ops.adaptive_max_pool1d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.adaptive_max_pool1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AdaptiveMaxPool1d.html) | -| [torch.nn.functional.adaptive_max_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_max_pool2d) | [mindspore.ops.adaptive_max_pool2d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.adaptive_max_pool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.affine_grid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.affine_grid) | [mindspore.ops.affine_grid](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.affine_grid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.avg_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.avg_pool1d) | [mindspore.ops.avg_pool1d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.avg_pool1d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/avg_pool1d.html) | -| [torch.nn.functional.avg_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.avg_pool2d) | [mindspore.ops.avg_pool2d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.avg_pool2d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/avg_pool1d.html) | -| [torch.nn.functional.avg_pool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.avg_pool3d) | [mindspore.ops.avg_pool3d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.avg_pool3d.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/avg_pool1d.html) | -| [torch.nn.functional.batch_norm](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.batch_norm) | [mindspore.ops.batch_norm](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.batch_norm.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.bilinear](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.bilinear) | [mindspore.ops.bidense](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.bidense.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.binary_cross_entropy](https://pytorch.org/docs/1.8.1/nn.functional.html#binary-cross-entropy) | [mindspore.ops.binary_cross_entropy](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.binary_cross_entropy.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.binary_cross_entropy_with_logits](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.binary_cross_entropy_with_logits) | [mindspore.ops.binary_cross_entropy_with_logits](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.binary_cross_entropy_with_logits.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.celu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.celu) | [mindspore.ops.celu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.celu.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.nn.functional.conv1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.conv1d) | [mindspore.ops.conv1d](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.conv1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.conv2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.conv2d) | [mindspore.ops.conv2d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.conv2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.conv3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.conv3d) | [mindspore.ops.conv3d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.conv3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.cosine_embedding_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.cosine_embedding_loss) | [mindspore.ops.cosine_embedding_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cosine_embedding_loss.html) | The functions are consistent | -| [torch.nn.functional.cosine_similarity](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.cosine_similarity)| [mindspore.ops.cosine_similarity](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cosine_similarity.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.cross_entropy](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.cross_entropy)| [mindspore.ops.cross_entropy](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.cross_entropy.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.ctc_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.ctc_loss)| [mindspore.ops.ctc_loss](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.ctc_loss.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.linear](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.linear) | [mindspore.ops.dense](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.dense.html#mindspore.ops.dense) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.dropout](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.dropout) | [mindspore.ops.dropout](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.dropout.html#mindspore.ops.dropout) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/drop_out.html) | -| [torch.nn.functional.dropout2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.dropout2d) | [mindspore.ops.dropout2d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.dropout2d.html#mindspore.ops.dropout2d) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/dropout2d.html) | -| [torch.nn.functional.dropout3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.dropout3d) | [mindspore.ops.dropout3d](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.dropout3d.html#mindspore.ops.dropout3d) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/dropout3d.html) | -| [torch.nn.functional.elu](https://pytorch.org/docs/1.8.1/nn.functional.html#elu) | [mindspore.ops.elu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.elu.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/elu.html) | -| [torch.nn.functional.fold](https://pytorch.org/docs/1.8.1/nn.functional.html#fold) | [mindspore.ops.fold](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.fold.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/mindspore.ops.fold.html) | -| [torch.nn.functional.gelu](https://pytorch.org/docs/1.8.1/nn.functional.html#gelu) | [mindspore.ops.gelu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.gelu.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/mindspore.ops.gelu.html) | -| [torch.nn.functional.glu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.glu) | [mindspore.ops.glu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.glu.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.grid_sample](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.grid_sample) | [mindspore.ops.grid_sample](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.grid_sample.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/grid_sample.html) | -| [torch.nn.functional.gumbel_softmax](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.gumbel_softmax) | [mindspore.ops.gumbel_softmax](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.gumbel_softmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.hardshrink](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.hardshrink) | [mindspore.ops.hardshrink](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hardshrink.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.hardsigmoid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.hardsigmoid) | [mindspore.ops.hardsigmoid](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hardsigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.hardswish](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.hardswish) | [mindspore.ops.hardswish](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hardswish.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.hardtanh](https://pytorch.org/docs/1.8.1/nn.functional.html#hardtanh) | [mindspore.ops.hardtanh](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hardtanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.hinge_embedding_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#hinge-embedding-loss) | [mindspore.ops.hinge_embedding_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.hinge_embedding_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.interpolate](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.interpolate) | [mindspore.ops.interpolate](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.interpolate.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/interpolate.html) | -| [torch.nn.functional.kl_div](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.kl_div) | [mindspore.ops.kl_div](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.kl_div.html#mindspore.ops.kl_div) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/kl_div.html) | -| [torch.nn.functional.l1_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#l1-loss) | [mindspore.ops.l1_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.l1_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.leaky_relu](https://pytorch.org/docs/1.8.1/nn.functional.html#leaky-relu) | [mindspore.ops.leaky_relu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.leaky_relu.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/leaky_relu.html) | -| [torch.nn.functional.logsigmoid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.logsigmoid) | [mindspore.ops.logsigmoid](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.logsigmoid.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.log_softmax](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.log_softmax) | [mindspore.ops.log_softmax](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.log_softmax.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/log_softmax.html) | -| [torch.nn.functional.lp_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#lp-pool1d) | [mindspore.ops.lp_pool1d](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.lp_pool1d.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.nn.functional.lp_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#lp-pool2d) | [mindspore.ops.lp_pool2d](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.lp_pool2d.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.nn.functional.margin_ranking_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#margin-ranking-loss) | [mindspore.ops.margin_ranking_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.margin_ranking_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.max_pool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.max_pool3d) | [mindspore.ops.max_pool3d](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.max_pool3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.max_unpool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#max-unpool1d) | [mindspore.ops.max_unpool1d](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.max_unpool1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.max_unpool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#max-unpool2d) | [mindspore.ops.max_unpool2d](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.max_unpool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.max_unpool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#max-unpool3d) | [mindspore.ops.max_unpool3d](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.max_unpool3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.mse_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#mse-loss) | [mindspore.ops.mse_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.mse_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.multi_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.multi_margin_loss) | [mindspore.ops.multi_margin_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.multi_margin_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.multilabel_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.multilabel_margin_loss) | [mindspore.ops.multilabel_margin_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.multilabel_margin_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.multilabel_soft_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.multilabel_soft_margin_loss) | [mindspore.ops.multilabel_soft_margin_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.multilabel_soft_margin_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.nll_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.nll_loss) | [mindspore.ops.nll_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.nll_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.pad](https://pytorch.org/docs/1.8.1/nn.functional.html#pad) | [mindspore.ops.pad](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.pad.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/pad.html) | -| [torch.nn.functional.pdist](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.pdist)| [mindspore.ops.pdist](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.pdist.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.nn.functional.pixel_shuffle](https://pytorch.org/docs/1.8.1/nn.functional.html#pixel-shuffle) | [mindspore.ops.pixel_shuffle](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.pixel_shuffle.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.pixel_unshuffle](https://pytorch.org/docs/1.8.1/nn.functional.html#pixel-unshuffle) | [mindspore.ops.pixel_unshuffle](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.pixel_unshuffle.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.prelu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.prelu) | [mindspore.ops.prelu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.prelu.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.relu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.relu) | [mindspore.ops.relu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.relu.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.relu6](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.relu6) | [mindspore.ops.relu6](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.relu6.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.rrelu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.rrelu) | [mindspore.ops.rrelu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.rrelu.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.selu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.selu) | [mindspore.ops.selu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.selu.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.sigmoid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.sigmoid) | [mindspore.ops.sigmoid](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.sigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.silu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.silu) | [mindspore.ops.silu](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.silu.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.softmax](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softmax) | [mindspore.ops.softmax](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.softmax.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/softmax.html) | -| [torch.nn.functional.softmin](https://pysoftmaxtorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softmin) | [mindspore.ops.softmin](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.softmin.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/softmin.html) | -| [torch.nn.functional.softsign](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softsign) | [mindspore.ops.softsign](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.softsign.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.smooth_l1_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.smooth_l1_loss) | [mindspore.ops.smooth_l1_loss](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.smooth_l1_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.soft_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#soft-margin-loss) | [mindspore.ops.soft_margin_loss](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.soft_margin_loss.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.softshrink](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softshrink) | [mindspore.ops.softshrink](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.softshrink.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.tanh](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.tanh) | [mindspore.ops.tanh](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.tanhshrink](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.tanhshrink) | [mindspore.ops.tanhshrink](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tanhshrink.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.nn.functional.threshold](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.threshold) | [mindspore.ops.threshold](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.threshold.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.nn.functional.triplet_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.triplet_margin_loss) | [mindspore.ops.triplet_margin_loss](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.triplet_margin_loss.html) | [The functions are consistent, but the number or sequence of parameters is inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/TripletMarginLoss.html) | -| [torch.nn.functional.unfold](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.unfold) | [mindspore.ops.unfold](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.unfold.html) | Consistent | -| [torch.nn.functional.upsample](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.upsample) | [mindspore.ops.upsample](https://mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.upsample.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/interpolate.html) | - -## torch.nn.Module - -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| [torch.nn.Module.apply](https://pytorch.org/docs/1.8.1/generated/torch.nn.Module.html#torch.nn.Module.apply) | [mindspore.nn.Cell.apply](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Cell.html#mindspore.nn.Cell.apply) | Consistent | - -## torch.nn.utils - -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -|[torch.nn.utils.clip_grad_value_](https://pytorch.org/docs/1.8.1/generated/torch.nn.utils.clip_grad_value_.html) |[mindspore.ops.clip_by_value](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.clip_by_value.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/clip_by_value.html) | -|[torch.nn.utils.clip_grad_norm_](https://pytorch.org/docs/1.8.1/generated/torch.nn.utils.clip_grad_norm_.html) |[mindspore.ops.clip_by_norm](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.clip_by_norm.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/clip_by_norm.html) | +| [torch.nn.functional.adaptive_avg_pool1d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool1d) | [mindspore.mint.nn.functional.adaptive_avg_pool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.adaptive_avg_pool1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.adaptive_avg_pool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool2d) | [mindspore.mint.nn.functional.adaptive_avg_pool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.adaptive_avg_pool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.avg_pool1d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.avg_pool1d) | [mindspore.mint.nn.functional.avg_pool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.avg_pool1d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.avg_pool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.avg_pool2d) | [mindspore.mint.nn.functional.avg_pool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.avg_pool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.batch_norm](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.batch_norm) | [mindspore.mint.nn.functional.batch_norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.batch_norm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.functional.binary_cross_entropy](https://pytorch.org/docs/2.1/nn.functional.html#binary-cross-entropy) | [mindspore.mint.nn.functional.binary_cross_entropy](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.binary_cross_entropy.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.binary_cross_entropy_with_logits](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.binary_cross_entropy_with_logits) | [mindspore.mint.nn.functional.binary_cross_entropy_with_logits](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.binary_cross_entropy_with_logits.html) |The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.conv3d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.conv3d) | [mindspore.mint.nn.functional.conv3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.conv3d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.conv_transpose2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.conv_transpose2d) | [mindspore.mint.nn.functional.conv_transpose2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.conv_transpose2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.dropout](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.dropout) | [mindspore.mint.nn.functional.dropout](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.dropout.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.dropout2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.dropout2d) | [mindspore.mint.nn.functional.dropout2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.dropout2d.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.elu](https://pytorch.org/docs/2.1/nn.functional.html#elu) | [mindspore.mint.nn.functional.elu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.elu.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.embedding](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.embedding) | [mindspore.mint.nn.functional.embedding](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.embedding.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.fold](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.fold) | [mindspore.mint.nn.functional.fold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.fold.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.functional.gelu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.gelu) | [mindspore.mint.nn.functional.gelu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.gelu.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.functional.grid_sample](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.grid_sample) | [mindspore.mint.nn.functional.grid_sample](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.grid_sample.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.hardshrink](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.hardshrink) | [mindspore.mint.nn.functional.hardshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.hardshrink.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.hardsigmoid](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.hardsigmoid) | [mindspore.mint.nn.functional.hardsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.hardsigmoid.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.hardswish](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.hardswish) | [mindspore.mint.nn.functional.hardswish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.hardswish.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.interpolate](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.interpolate) | [mindspore.mint.nn.functional.interpolate](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.interpolate.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.l1_loss](https://pytorch.org/docs/2.1/nn.functional.html#l1-loss) | [mindspore.mint.nn.functional.l1_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.l1_loss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.leaky_relu](https://pytorch.org/docs/2.1/nn.functional.html#leaky-relu) | [mindspore.mint.nn.functional.leaky_relu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.leaky_relu.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.linear](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.linear) | [mindspore.mint.nn.functional.linear](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.linear.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.log_softmax](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.log_softmax) | [mindspore.mint.nn.functional.log_softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.log_softmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.logsigmoid](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.logsigmoid) | [mindspore.mint.nn.functional.logsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.logsigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.max_pool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.max_pool2d) | [mindspore.mint.nn.functional.max_pool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.max_pool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.max_unpool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.max_unpool2d) | [mindspore.mint.nn.functional.max_unpool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.max_unpool2d.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.mish](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.mish) | [mindspore.mint.nn.functional.mish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.mish.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.mse_loss](https://pytorch.org/docs/2.1/nn.functional.html#mse-loss) | [mindspore.mint.nn.functional.mse_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.mse_loss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.nll_loss](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.nll_loss) | [mindspore.mint.nn.functional.nll_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.nll_loss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.normalize](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.normalize) | [mindspore.mint.nn.functional.normalize](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.normalize.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.one_hot](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.one_hot) | [mindspore.mint.nn.functional.one_hot](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.one_hot.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.pad](https://pytorch.org/docs/2.1/nn.functional.html#pad) | [mindspore.mint.nn.functional.pad](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.pad.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.prelu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.prelu) | [mindspore.mint.nn.functional.prelu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.prelu.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.relu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.relu) | [mindspore.mint.nn.functional.relu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.relu.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.relu6](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.relu6) | [mindspore.mint.nn.functional.relu6](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.relu6.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.relu_](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.relu_) | [mindspore.mint.nn.functional.relu_](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.relu_.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.selu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.selu) | [mindspore.mint.nn.functional.selu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.selu.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.sigmoid](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.sigmoid) | [mindspore.mint.nn.functional.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.sigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.silu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.silu) | [mindspore.mint.nn.functional.silu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.silu.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.smooth_l1_loss](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.smooth_l1_loss) | [mindspore.mint.nn.functional.smooth_l1_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.smooth_l1_loss.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.nn.functional.softmax](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.softmax) | [mindspore.mint.nn.functional.softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.softmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.nn.functional.softplus](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.softplus) | [mindspore.mint.nn.functional.softplus](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.softplus.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.softshrink](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.softshrink) | [mindspore.mint.nn.functional.softshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.softshrink.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.tanh](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.tanh) | [mindspore.mint.nn.functional.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.tanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.nn.functional.unfold](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.unfold) | [mindspore.mint.nn.functional.unfold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.unfold.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | ## torch.Tensor -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| ------------------------------------------------------------ | ------------------------------------------------------------ |---------------------------------------------| -| [torch.Tensor.abs](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.abs) | [mindspore.Tensor.abs](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.abs.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.absolute](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.absolute) | [mindspore.Tensor.absolute](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.absolute.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.acos](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.acos)| [mindspore.Tensor.acos](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.acos.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.acosh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.acosh)| [mindspore.Tensor.acosh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.acosh.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.add](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.add)| [mindspore.Tensor.add](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.add.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.addbmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addbmm) | [mindspore.Tensor.addbmm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.addbmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.addcdiv](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addcdiv)| [mindspore.Tensor.addcdiv](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.addcdiv.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.addcmul](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addcmul)| [mindspore.Tensor.addcmul](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.addcmul.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.addmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addmm) | [mindspore.Tensor.addmm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.addmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.addmv](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addmv) | [mindspore.Tensor.addmv](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.addmv.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.addr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addr) | [mindspore.Tensor.addr](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.addr.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.all](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.all) | [mindspore.Tensor.all](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.all.html) |[diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/all.html) | -| [torch.Tensor.amax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.amax) | [mindspore.Tensor.amax](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.amax.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/amax.html) | -| [torch.Tensor.amin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.amin) | [mindspore.Tensor.amin](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.amin.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/amin.html) | -| [torch.Tensor.any](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.any) | [mindspore.Tensor.any](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.any.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/any.html) | -| [torch.Tensor.arccos](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arccos) | [mindspore.Tensor.arccos](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.arccos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.arccosh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arccosh) | [mindspore.Tensor.arccosh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.arccosh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.argmax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.argmax) | [mindspore.Tensor.argmax](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.argmax.html#mindspore.Tensor.argmax) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.angle](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.angle) | [mindspore.Tensor.angle](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.angle.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.arcsin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arcsin) | [mindspore.Tensor.arcsin](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.arcsin.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.arcsinh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arcsinh) | [mindspore.Tensor.arcsinh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.arcsinh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.arctan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arctan) | [mindspore.Tensor.arctan](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.arctan.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.arctanh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arctanh) | [mindspore.Tensor.arctanh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.arctanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.argmin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.argmin) | [mindspore.Tensor.argmin](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.argmin.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.argsort](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.argsort) | [mindspore.Tensor.argsort](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.argsort.html) |The functions are consistent, but the parameter names are inconsistent.| -| [torch.Tensor.asin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.asin)| [mindspore.Tensor.asin](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.asin.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.asinh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.asinh)| [mindspore.Tensor.asinh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.asinh.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.atan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.atan)| [mindspore.Tensor.atan](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.atan.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.atan2](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.atan2) | [mindspore.Tensor.atan2](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.atan2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.atanh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.atanh)| [mindspore.Tensor.atanh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.atanh.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.baddbmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.baddbmm) | [mindspore.Tensor.baddbmm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.baddbmm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.bernoulli](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bernoulli) | [mindspore.Tensor.bernoulli](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.bernoulli.html) | [The functions are consistent, but the number or sequence of parameters is inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/bernoulli.html) | -| [torch.Tensor.bincount](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bincount) | [mindspore.Tensor.bincount](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.bincount.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.bitwise_and](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bitwise_and)| [mindspore.Tensor.bitwise_and](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.bitwise_and.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.bitwise_or](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bitwise_or)| [mindspore.Tensor.bitwise_or](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.bitwise_or.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.bitwise_xor](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bitwise_xor)| [mindspore.Tensor.bitwise_xor](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.bitwise_xor.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.bmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bmm)| [mindspore.Tensor.bmm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.bmm.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.bool](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bool)| [mindspore.Tensor.bool](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.bool.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.broadcast_to](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.broadcast_to) | [mindspore.Tensor.broadcast_to](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.broadcast_to.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/broadcast_to.html) | -| [torch.Tensor.cauchy_](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cauchy_) | [mindspore.Tensor.cauchy](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cauchy.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.ceil](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ceil) | [mindspore.Tensor.ceil](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ceil.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.chunk](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.chunk) | [mindspore.Tensor.chunk](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.chunk.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.cholesky](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cholesky) | [mindspore.Tensor.cholesky](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cholesky.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.cholesky_solve](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cholesky_solve) | [mindspore.Tensor.cholesky_solve](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cholesky_solve.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.clamp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.clamp) | [mindspore.Tensor.clamp](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.clamp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.clip](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.clip) | [mindspore.Tensor.clip](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.clip.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.conj](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.conj) | [mindspore.Tensor.conj](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.conj.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.contiguous](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.contiguous) | [mindspore.Tensor.contiguous](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.contiguous.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.copysign](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.copysign) | [mindspore.Tensor.copysign](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.copysign.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.cos](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cos) | [mindspore.Tensor.cos](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.cosh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cosh) | [mindspore.Tensor.cosh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cosh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.cross](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cross) | [mindspore.Tensor.cross](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cross.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.cummax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cummax) | [mindspore.Tensor.cummax](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cummax.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.cummin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cummin) | [mindspore.Tensor.cummin](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cummin.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.cumprod](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cumprod) | [mindspore.Tensor.cumprod](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cumprod.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.cumsum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cumsum) | [mindspore.Tensor.cumsum](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.cumsum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.deg2rad](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.deg2rad) | [mindspore.Tensor.deg2rad](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.deg2rad.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.diag](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diag) | [mindspore.Tensor.diag](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.diag.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/diag.html) | -| [torch.Tensor.diagonal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diagonal) | [mindspore.Tensor.diagonal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.diagonal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.diagflat](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diagflat) | [mindspore.Tensor.diagflat](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.diagflat.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.diff](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diff) | [mindspore.Tensor.diff](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.diff.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.digamma](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.digamma) | [mindspore.Tensor.digamma](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.digamma.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.dim](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.dim) | [mindspore.Tensor.ndimension](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ndimension.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.div](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.div) | [mindspore.Tensor.div](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.div.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.divide](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.divide) | [mindspore.Tensor.divide](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.eq](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.eq) | [mindspore.Tensor.equal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.erf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.erf) | [mindspore.Tensor.erf](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.erf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.erfc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.erfc) | [mindspore.Tensor.erfc](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.erfc.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.erfinv](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.erfinv) | [mindspore.Tensor.erfinv](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.erfinv.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.exp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.exp) | [mindspore.Tensor.exp](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.exp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.expand](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.expand) | [mindspore.Tensor.broadcast_to](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.broadcast_to.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/expand.html) | -| [torch.Tensor.expand_as](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.expand_as) | [mindspore.Tensor.expand_as](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.expand_as.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.expm1](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.expm1) | [mindspore.Tensor.expm1](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.expm1.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.fill_diagonal_](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fill_diagonal_) | [mindspore.Tensor.fill_diagonal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.fill_diagonal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.flip](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.flip) | [mindspore.Tensor.flip](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.flip.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/flip.html) | -| [torch.Tensor.fliplr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fliplr) | [mindspore.Tensor.fliplr](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.fliplr.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.flipud](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.flipud) | [mindspore.Tensor.flipud](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.flipud.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.float](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.float) | [mindspore.Tensor.float](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.float.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.float_power](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.float_power) | [mindspore.Tensor.float_power](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.float_power.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/float_power.html) | -| [torch.Tensor.floor](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.floor) | [mindspore.Tensor.floor](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.floor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.floor_divide](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.floor_divide) | [mindspore.Tensor.floor_divide](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.floor_divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.fmax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fmax) | [mindspore.Tensor.fmax](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.fmax.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.fmod](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fmod) | [mindspore.Tensor.fmod](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.fmod.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.frac](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.frac) | [mindspore.Tensor.frac](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.frac.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.gather](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.gather) | [mindspore.Tensor.gather_elements](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.gather_elements.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.ge](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ge) | [mindspore.Tensor.ge](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ge.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.geqrf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.geqrf) | [mindspore.Tensor.geqrf](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.geqrf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.ger](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ger) | [mindspore.Tensor.ger](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ger.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/ger.html) | -| [torch.Tensor.greater](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.greater) | [mindspore.Tensor.greater](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.greater.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.greater_equal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.greater_equal) | [mindspore.Tensor.greater_equal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.greater_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.gt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.gt) | [mindspore.Tensor.gt](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.gt.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.H](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.H) | [mindspore.Tensor.H](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.H.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.half](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.half) | [mindspore.Tensor.half](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.half.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.hardshrink](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.hardshrink) | [mindspore.Tensor.hardshrink](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.hardshrink.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.heaviside](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.heaviside) | [mindspore.Tensor.heaviside](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.heaviside.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.histc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.histc) | [mindspore.Tensor.histc](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.histc.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.hypot](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.hypot) | [mindspore.Tensor.hypot](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.hypot.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.i0](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.i0)| [mindspore.Tensor.i0](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.i0.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.igamma](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.igamma)| [mindspore.Tensor.igamma](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.igamma.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.igammac](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.igammac)| [mindspore.Tensor.igammac](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.igammac.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.imag](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.imag)| [mindspore.Tensor.imag](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.imag.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.index_add](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_add) | [mindspore.Tensor.index_add](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.index_add.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.index_fill](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_fill) | [mindspore.Tensor.index_fill](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.index_fill.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.index_put](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_put) | [mindspore.Tensor.index_put](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.index_put.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.index_select](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_select) | [mindspore.Tensor.index_select](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.index_select.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.inner](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.inner) | [mindspore.Tensor.inner](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.inner.html) | The functions are consistent, but parameter names are different. | -| [torch.Tensor.int](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.int) | [mindspore.Tensor.int](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.int.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.inverse](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.inverse) | [mindspore.Tensor.inverse](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.inverse.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.isclose](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isclose) | [mindspore.Tensor.isclose](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.isclose.html) | The functions are consistent, but parameter names are inconsistent. | -| [torch.Tensor.isfinite](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isfinite) | [mindspore.Tensor.isfinite](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.isfinite.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.isinf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isinf) | [mindspore.Tensor.isinf](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.isinf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.isnan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isnan) | [mindspore.Tensor.isnan](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.isnan.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.is_complex](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_complex) | [mindspore.Tensor.is_complex](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.is_complex.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.is_contiguous](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_contiguous) | [mindspore.Tensor.is_contiguous](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.is_contiguous.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.is_floating_point](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_floating_point) | [mindspore.Tensor.is_floating_point](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.is_floating_point.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.is_signed](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_signed) | [mindspore.Tensor.is_signed](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.is_signed.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.isneginf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isneginf) | [mindspore.Tensor.isneginf](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.isneginf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.isposinf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isposinf) | [mindspore.Tensor.isposinf](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.isposinf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.isreal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isreal) | [mindspore.Tensor.isreal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.isreal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.item](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.item) | [mindspore.Tensor.item](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.item.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.lcm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lcm) | [mindspore.Tensor.lcm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.lcm.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.ldexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ldexp) | [mindspore.Tensor.ldexp](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ldexp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.le](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.le) | [mindspore.Tensor.le](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.le.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.lerp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lerp) | [mindspore.Tensor.lerp](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.lerp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.less](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.less) | [mindspore.Tensor.less](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.less.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.less_equal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.less_equal) | [mindspore.Tensor.less_equal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.less_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.log](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log) | [mindspore.Tensor.log](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.log.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.log_normal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log_normal) | [mindspore.Tensor.log_normal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.log_normal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.log10](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log10) | [mindspore.Tensor.log10](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.log10.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.log1p](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log1p) | [mindspore.Tensor.log1p](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.log1p.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.log2](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log2) | [mindspore.Tensor.log2](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.log2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logaddexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logaddexp) | [mindspore.Tensor.logaddexp](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logaddexp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logaddexp2](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logaddexp2) | [mindspore.Tensor.logaddexp2](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logaddexp2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logcumsumexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logcumsumexp) | [mindspore.Tensor.logcumsumexp](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logcumsumexp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logdet](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logdet) | [mindspore.Tensor.logdet](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logdet.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logical_and](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_and) | [mindspore.Tensor.logical_and](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_and.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logical_not](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_not) | [mindspore.Tensor.logical_not](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_not.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logical_or](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_or) | [mindspore.Tensor.logical_or](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_or.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logical_xor](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_xor) | [mindspore.Tensor.logical_xor](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_xor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.logit](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logit)| [mindspore.Tensor.logit](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logit.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.logsumexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logsumexp) | [mindspore.Tensor.logsumexp](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.logsumexp.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.long](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.long) | [mindspore.Tensor.long](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.long.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.lt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lt) | [mindspore.Tensor.lt](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.lt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.lu_solve](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lu_solve) | [mindspore.Tensor.lu_solve](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.lu_solve.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.masked_fill](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.masked_fill) | [mindspore.Tensor.masked_fill](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_fill.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.masked_scatter](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.masked_scatter) | [mindspore.Tensor.masked_scatter](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_scatter.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/masked_scatter.html) | -| [torch.Tensor.masked_select](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.masked_select) | [mindspore.Tensor.masked_select](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_select.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.matmul](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.matmul) | [mindspore.Tensor.matmul](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.matmul.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.max](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.max) | [mindspore.Tensor.max](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.max.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/tensor_max.html) | -| [torch.Tensor.maximum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.maximum) | [mindspore.Tensor.maximum](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.maximum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.mean](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mean) | [mindspore.Tensor.mean](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.mean.html) | The functions are consistent, but parameter names are inconsistent. | -| [torch.Tensor.median](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.median) | [mindspore.Tensor.median](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.median.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/median.html) | -| [torch.Tensor.mH](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mH)| [mindspore.Tensor.mH](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.mH.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.min](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.min) | [mindspore.Tensor.min](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.min.html#mindspore.Tensor.min) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/tensor_min.html) | -| [torch.Tensor.minimum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.minimum) | [mindspore.Tensor.minimum](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.minimum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.mm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mm)| [mindspore.Tensor.mm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.mm.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.moveaxis](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.moveaxis) | [mindspore.Tensor.moveaxis](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.moveaxis.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.movedim](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.movedim) | [mindspore.Tensor.movedim](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.movedim.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.msort](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.msort) | [mindspore.Tensor.msort](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.msort.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.mT](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mT)| [mindspore.Tensor.mT](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.mT.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.mul](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mul) | [mindspore.Tensor.mul](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.mul.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.multinomial](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.multinomial) | [mindspore.Tensor.multinomial](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.multinomial.html) | [The functions are consistent, but the parameter default values are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/multinomial.html) | -| [torch.Tensor.multiply](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.multiply) | [mindspore.Tensor.multiply](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.multiply.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.mvlgamma](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mvlgamma) | [mindspore.Tensor.mvlgamma](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.mvlgamma.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.nan_to_num](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nan_to_num) | [mindspore.Tensor.nan_to_num](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.nan_to_num.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.nanmedian](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nanmedian) | [mindspore.Tensor.nanmedian](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.nanmedian.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.nansum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nansum) | [mindspore.Tensor.nansum](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.nansum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.narrow](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.narrow) | [mindspore.Tensor.narrow](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.narrow.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.ndim](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ndim) | [mindspore.Tensor.ndim](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ndim.html#mindspore.Tensor.ndim) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.ndimension](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ndimension) | [mindspore.Tensor.ndimension](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ndimension.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.ne](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ne) | [mindspore.Tensor.ne](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ne.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.neg](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.neg) | [mindspore.Tensor.neg](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.neg.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.negative](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.negative) | [mindspore.Tensor.negative](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.negative.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.nelement](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nelement) | [mindspore.Tensor.nelement](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.nelement.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.new_ones](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.new_ones) | [mindspore.Tensor.new_ones](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.new_ones.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.new_zeros](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.new_zeros) | [mindspore.Tensor.new_zeros](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.new_zeros.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.nextafter](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nextafter) | [mindspore.Tensor.nextafter](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.nextafter.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.norm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.norm) | [mindspore.Tensor.norm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.norm.html) | torch.Tensor.norm is about to be deprecated, mindspore.Tensor.norm is completely consistent with torch.linalg.norm | -| [torch.Tensor.nonzero](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nonzero) | [mindspore.Tensor.nonzero](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.nonzero.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.not_equal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.not_equal) | [mindspore.Tensor.not_equal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.not_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.numel](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.numel) | [mindspore.Tensor.numel](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.numel.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.numpy](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.numpy) | [mindspore.Tensor.asnumpy](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.asnumpy.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.orgqr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.orgqr) | [mindspore.Tensor.orgqr](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.orgqr.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.ormqr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ormqr) | [mindspore.Tensor.ormqr](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ormqr.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.outer](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.outer) | [mindspore.Tensor.outer](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.outer.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.permute](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.permute) | [mindspore.Tensor.permute](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.permute.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.pow](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.pow) | [mindspore.Tensor.pow](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.pow.html) |The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.prod](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.prod) | [mindspore.Tensor.prod](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.prod.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/prod.html) | -| [torch.Tensor.ravel](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ravel) | [mindspore.Tensor.ravel](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.ravel.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.real](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.real) | [mindspore.Tensor.real](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.real.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.reciprocal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.reciprocal) | [mindspore.Tensor.reciprocal](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.reciprocal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.remainder](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.remainder) | [mindspore.Tensor.remainder](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.remainder.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.renorm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.renorm) | [mindspore.Tensor.renorm](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.renorm.html) | [The functions are consistent, but the parameter data types are inconsistent.](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/renorm.html) | -| [torch.Tensor.rad2deg](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.rad2deg) | [mindspore.Tensor.rad2deg](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.rad2deg.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.repeat](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.repeat) | [mindspore.Tensor.tile](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.tile.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/tensor_repeat.html) | -| [torch.Tensor.repeat_interleave](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.repeat_interleave) | [mindspore.Tensor.repeat_interleave](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.repeat_interleave.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.reshape](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.reshape) | [mindspore.Tensor.reshape](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.reshape.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.reshape_as](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.reshape_as) | [mindspore.Tensor.reshape_as](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.reshape_as.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.round](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.round)| [mindspore.Tensor.round](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.round.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.roll](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.roll) | [mindspore.Tensor.roll](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.roll.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.rot90](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.rot90) | [mindspore.Tensor.rot90](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.rot90.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.rsqrt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.rsqrt) | [mindspore.Tensor.rsqrt](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.rsqrt.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.scatter_](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.scatter_) | [mindspore.ops.tensor_scatter_elements](https://www.mindspore.cn/docs/en/master/api_python/ops/mindspore.ops.tensor_scatter_elements.html) |[diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/tensor_scatter_elements.html) | -| [torch.Tensor.sum_to_size](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sum_to_size) | [mindspore.Tensor.sum_to_size](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sum_to_size.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.scatter](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.scatter) | [mindspore.Tensor.scatter](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.scatter.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/scatter.html) | -| [torch.Tensor.sgn](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sgn) | [mindspore.Tensor.sgn](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sgn.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.shape](https://pytorch.org/docs/2.1/generated/torch.Tensor.shape.html#torch.Tensor.shape) | [mindspore.Tensor.shape](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.shape.html#mindspore.Tensor.shape)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.short](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.short) | [mindspore.Tensor.short](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.short.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.sigmoid](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sigmoid) | [mindspore.Tensor.sigmoid](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.sign](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sign) | [mindspore.Tensor.sign](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sign.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.signbit](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.signbit) | [mindspore.Tensor.signbit](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.signbit.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.sin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sin)| [mindspore.Tensor.sin](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sin.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.sinc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sinc)| [mindspore.Tensor.sinc](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sinc.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.sinh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sinh)| [mindspore.Tensor.sinh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sinh.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.size](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.size) | [mindspore.Tensor.shape](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.shape.html#mindspore.Tensor.shape) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/shape.html)| -| [torch.Tensor.slogdet](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.slogdet) | [mindspore.Tensor.slogdet](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.slogdet.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.sort](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sort) | [mindspore.Tensor.sort](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sort.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.split](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.split) | [mindspore.Tensor.split](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.split.html) | The functions are consistent, but the parameter names are inconsistent. The split_size parameter is split_size_or_sections in MindSpore. | -| [torch.Tensor.sqrt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sqrt) | [mindspore.Tensor.sqrt](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sqrt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.square](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.square)| [mindspore.Tensor.square](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.square.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.squeeze](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.squeeze) | [mindspore.Tensor.squeeze](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.squeeze.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.std](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.std) | [mindspore.Tensor.std](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.std.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/std.html) | -| [torch.Tensor.storage_offset](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.storage_offset) | [mindspore.Tensor.storage_offset](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.storage_offset.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.stride](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.stride) | [mindspore.Tensor.stride](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.stride.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.sub](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sub) | [mindspore.Tensor.subtract](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.subtract.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.subtract](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.subtract) | [mindspore.Tensor.subtract](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.subtract.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.sum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sum) | [mindspore.Tensor.sum](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.sum.html#mindspore.Tensor.sum) | [The functions are consistent, but the number or sequence of parameters is inconsistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/TensorSum.html) | -| [torch.Tensor.svd](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.svd) | [mindspore.Tensor.svd](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.svd.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/svd.html) | -| [torch.Tensor.swapaxes](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.swapaxes) | [mindspore.Tensor.swapaxes](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.swapdims](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.swapdims) | [mindspore.Tensor.swapdims](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.swapdims.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.T](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.T) | [mindspore.Tensor.T](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.T.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.t](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.t) | [mindspore.Tensor.t](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.t.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.take](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.take) | [mindspore.Tensor.take](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.take.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/take.html) | -| [torch.Tensor.tan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tan)| [mindspore.Tensor.tan](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.tan.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.tanh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tanh) | [mindspore.Tensor.tanh](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.tanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.trace](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.trace) | [mindspore.Tensor.trace](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.trace.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.transpose](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.transpose) | [mindspore.Tensor.swapaxes](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.tile](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tile) | [mindspore.Tensor.tile](https://mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.tile.html) | the functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.to](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.to)| [mindspore.Tensor.to](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.to.html)| [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/to.html) | -| [torch.Tensor.topk](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.topk)| [mindspore.Tensor.topk](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.topk.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.triu](https://pytorch.org/docs/1.8.1/tensors.html?#torch.Tensor.triu) | [mindspore.Tensor.triu](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.triu.html) | The functions are consistent, but the parameter names are inconsistent.| -| [torch.Tensor.tril](https://pytorch.org/docs/1.8.1/tensors.html?highlight=tril#torch.Tensor.tril) | [mindspore.Tensor.tril](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.tril.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.tensor_split](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tensor_split) | [mindspore.Tensor.tensor_split](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.tensor_split.html) |The functions are consistent, but the parameter names are inconsistent.| -| [torch.Tensor.true_divide](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.true_divide) | [mindspore.Tensor.true_divide](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.true_divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.trunc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.trunc) | [mindspore.Tensor.trunc](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.trunc.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.unbind](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.unbind) | [mindspore.Tensor.unbind](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.unbind.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.unique_consecutive](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.unique_consecutive) | [mindspore.Tensor.unique_consecutive](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.unique_consecutive.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.unsqueeze](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.unsqueeze) | [mindspore.Tensor.unsqueeze](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.unsqueeze.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| -| [torch.Tensor.var](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.var) | [mindspore.Tensor.var](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.var.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/var.html) | -| [torch.Tensor.view](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.view) | [mindspore.Tensor.view](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.view.html) | The functions are consistent | -| [torch.Tensor.view_as](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.view_as) | [mindspore.Tensor.view_as](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.view_as.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.where](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.where) | [mindspore.Tensor.where](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.where.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | -| [torch.Tensor.xlogy](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.xlogy) | [mindspore.Tensor.xlogy](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.xlogy.html) | The functions are consistent, but the parameter names are inconsistent.| - -| PyTorch 1.12 APIs | MindSpore APIs | Descriptions | +| PyTorch 2.1 APIs | MindSpore APIs | Descriptions | | ------------------------------------------------------------ | ------------------------------------------------------------ |---------------------------------------------| -| [torch.Tensor.hsplit](https://pytorch.org/docs/1.12/generated/torch.Tensor.hsplit.html) | [mindspore.Tensor.hsplit](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.hsplit.html) | The functions are consistent, but the parameter names are inconsistent. | -| [torch.Tensor.vsplit](https://pytorch.org/docs/1.12/generated/torch.Tensor.vsplit.html) | [mindspore.Tensor.vsplit](https://www.mindspore.cn/docs/en/master/api_python/mindspore/Tensor/mindspore.Tensor.vsplit.html) | The functions are consistent, but the parameter names are inconsistent. | +| [torch.Tensor.abs](https://pytorch.org/docs/2.1/generated/torch.Tensor.abs.html) | [mindspore.Tensor.abs](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.abs.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.absolute](https://pytorch.org/docs/2.1/generated/torch.Tensor.absolute.html) | [mindspore.Tensor.absolute](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.absolute.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.add](https://pytorch.org/docs/2.1/generated/torch.Tensor.add.html)| [mindspore.Tensor.add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.add.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.all](https://pytorch.org/docs/2.1/generated/torch.Tensor.all.html) | [mindspore.Tensor.all](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.all.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.any](https://pytorch.org/docs/2.1/generated/torch.Tensor.any.html) | [mindspore.Tensor.any](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.any.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.argmax](https://pytorch.org/docs/2.1/generated/torch.Tensor.argmax.html) | [mindspore.Tensor.argmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.argmax.html#mindspore.Tensor.argmax) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.arctan2](https://pytorch.org/docs/2.1/generated/torch.Tensor.arctan2.html) | [mindspore.Tensor.arctan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arctan2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.argmin](https://pytorch.org/docs/2.1/generated/torch.Tensor.argmin.html) | [mindspore.Tensor.argmin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.argmin.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.atan2](https://pytorch.org/docs/2.1/generated/torch.Tensor.atan2.html) | [mindspore.Tensor.atan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.atan2.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.bool](https://pytorch.org/docs/2.1/generated/torch.Tensor.bool.html)| [mindspore.Tensor.bool](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bool.html)| [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.ceil](https://pytorch.org/docs/2.1/generated/torch.Tensor.ceil.html) | [mindspore.Tensor.ceil](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ceil.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.chunk](https://pytorch.org/docs/2.1/generated/torch.Tensor.chunk.html) | [mindspore.Tensor.chunk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.chunk.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.clamp](https://pytorch.org/docs/2.1/generated/torch.Tensor.clamp.html) | [mindspore.Tensor.clamp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.clamp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.clip](https://pytorch.org/docs/2.1/generated/torch.Tensor.clip.html) | [mindspore.Tensor.clip](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.clip.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.cos](https://pytorch.org/docs/2.1/generated/torch.Tensor.cos.html) | [mindspore.Tensor.cos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cos.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.cumsum](https://pytorch.org/docs/2.1/generated/torch.Tensor.cumsum.html) | [mindspore.Tensor.cumsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cumsum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.div](https://pytorch.org/docs/2.1/generated/torch.Tensor.div.html) | [mindspore.Tensor.div](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.div.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.divide](https://pytorch.org/docs/2.1/generated/torch.Tensor.divide.html) | [mindspore.Tensor.divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.divide.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.eq](https://pytorch.org/docs/2.1/generated/torch.Tensor.eq.html) | [mindspore.Tensor.eq](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.eq.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.erf](https://pytorch.org/docs/2.1/generated/torch.Tensor.erf.html) | [mindspore.Tensor.erf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.erf.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.exp](https://pytorch.org/docs/2.1/generated/torch.Tensor.exp.html) | [mindspore.Tensor.exp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.exp.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.expand_as](https://pytorch.org/docs/2.1/generated/torch.Tensor.expand_as.html) | [mindspore.Tensor.expand_as](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.expand_as.html#mindspore.Tensor.expand_as) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.flatten](https://pytorch.org/docs/2.1/generated/torch.Tensor.flatten.html) | [mindspore.Tensor.flatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.flatten.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.float](https://pytorch.org/docs/2.1/generated/torch.Tensor.float.html) | [mindspore.Tensor.float](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.float.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.floor](https://pytorch.org/docs/2.1/generated/torch.Tensor.floor.html) | [mindspore.Tensor.floor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.floor.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.gather](https://pytorch.org/docs/2.1/generated/torch.Tensor.gather.html) | [mindspore.Tensor.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.gather.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.greater](https://pytorch.org/docs/2.1/generated/torch.Tensor.greater.html) | [mindspore.Tensor.greater](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.greater.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.gt](https://pytorch.org/docs/2.1/generated/torch.Tensor.gt.html) | [mindspore.Tensor.gt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.gt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.half](https://pytorch.org/docs/2.1/generated/torch.Tensor.half.html) | [mindspore.Tensor.half](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.half.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.index_select](https://pytorch.org/docs/2.1/generated/torch.Tensor.index_select.html) | [mindspore.Tensor.index_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.index_select.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.int](https://pytorch.org/docs/2.1/generated/torch.Tensor.int.html) | [mindspore.Tensor.int](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.int.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.isfinite](https://pytorch.org/docs/2.1/generated/torch.Tensor.isfinite.html) | [mindspore.Tensor.isfinite](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isfinite.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.isnan](https://pytorch.org/docs/2.1/generated/torch.Tensor.isnan.html) | [mindspore.Tensor.isnan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isnan.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.item](https://pytorch.org/docs/2.1/generated/torch.Tensor.item.html) | [mindspore.Tensor.item](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.item.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.le](https://pytorch.org/docs/2.1/generated/torch.Tensor.le.html) | [mindspore.Tensor.le](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.le.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.less](https://pytorch.org/docs/2.1/generated/torch.Tensor.less.html) | [mindspore.Tensor.less](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.less.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.less_equal](https://pytorch.org/docs/2.1/generated/torch.Tensor.less_equal.html) | [mindspore.Tensor.less_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.less_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.log](https://pytorch.org/docs/2.1/generated/torch.Tensor.log.html) | [mindspore.Tensor.log](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.log.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.logical_and](https://pytorch.org/docs/2.1/generated/torch.Tensor.logical_and.html) | [mindspore.Tensor.logical_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_and.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.logical_not](https://pytorch.org/docs/2.1/generated/torch.Tensor.logical_not.html) | [mindspore.Tensor.logical_not](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_not.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.logical_or](https://pytorch.org/docs/2.1/generated/torch.Tensor.logical_or.html) | [mindspore.Tensor.logical_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_or.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.long](https://pytorch.org/docs/2.1/generated/torch.Tensor.long.html) | [mindspore.Tensor.long](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.long.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.lt](https://pytorch.org/docs/2.1/generated/torch.Tensor.lt.html) | [mindspore.Tensor.lt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.lt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.masked_fill](https://pytorch.org/docs/2.1/generated/torch.Tensor.masked_fill.html) | [mindspore.Tensor.masked_fill](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_fill.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.masked_select](https://pytorch.org/docs/2.1/generated/torch.Tensor.masked_select.html) | [mindspore.Tensor.masked_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_select.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.matmul](https://pytorch.org/docs/2.1/generated/torch.Tensor.matmul.html) | [mindspore.Tensor.matmul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.matmul.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.max](https://pytorch.org/docs/2.1/generated/torch.Tensor.max.html) | [mindspore.Tensor.max](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.max.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.maximum](https://pytorch.org/docs/2.1/generated/torch.Tensor.maximum.html) | [mindspore.Tensor.maximum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.maximum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.mean](https://pytorch.org/docs/2.1/generated/torch.Tensor.mean.html) | [mindspore.Tensor.mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mean.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.min](https://pytorch.org/docs/2.1/generated/torch.Tensor.min.html) | [mindspore.Tensor.min](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.min.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.minimum](https://pytorch.org/docs/2.1/generated/torch.Tensor.minimum.html) | [mindspore.Tensor.minimum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.minimum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.mul](https://pytorch.org/docs/2.1/generated/torch.Tensor.mul.html) | [mindspore.Tensor.mul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mul.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.nan_to_num](https://pytorch.org/docs/2.1/generated/torch.Tensor.nan_to_num.html) | [mindspore.Tensor.nan_to_num](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nan_to_num.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.ne](https://pytorch.org/docs/2.1/generated/torch.Tensor.ne.html) | [mindspore.Tensor.ne](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ne.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.neg](https://pytorch.org/docs/2.1/generated/torch.Tensor.neg.html) | [mindspore.Tensor.neg](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.neg.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.negative](https://pytorch.org/docs/2.1/generated/torch.Tensor.negative.html) | [mindspore.Tensor.negative](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.negative.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.not_equal](https://pytorch.org/docs/2.1/generated/torch.Tensor.not_equal.html) | [mindspore.Tensor.not_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.not_equal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.pow](https://pytorch.org/docs/2.1/generated/torch.Tensor.pow.html) | [mindspore.Tensor.pow](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.pow.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.prod](https://pytorch.org/docs/2.1/generated/torch.Tensor.prod.html) | [mindspore.Tensor.prod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.prod.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.reciprocal](https://pytorch.org/docs/2.1/generated/torch.Tensor.reciprocal.html) | [mindspore.Tensor.reciprocal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.reciprocal.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.remainder](https://pytorch.org/docs/2.1/generated/torch.Tensor.remainder.html) | [mindspore.Tensor.remainder](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.remainder.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.repeat_interleave](https://pytorch.org/docs/2.1/generated/torch.Tensor.repeat_interleave.html) | [mindspore.Tensor.repeat_interleave](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.repeat_interleave.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.reshape](https://pytorch.org/docs/2.1/generated/torch.Tensor.reshape.html) | [mindspore.Tensor.reshape](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.reshape.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.round](https://pytorch.org/docs/2.1/generated/torch.Tensor.round.html)| [mindspore.Tensor.round](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.round.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.rsqrt](https://pytorch.org/docs/2.1/generated/torch.Tensor.rsqrt.html) | [mindspore.Tensor.rsqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.rsqrt.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.scatter](https://pytorch.org/docs/2.1/generated/torch.Tensor.scatter.html) | [mindspore.Tensor.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.scatter.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.scatter_add](https://pytorch.org/docs/2.1/generated/torch.Tensor.scatter_add.html) | [mindspore.Tensor.scatter_add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.scatter_add.html) |[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.sigmoid](https://pytorch.org/docs/2.1/generated/torch.Tensor.sigmoid.html) | [mindspore.Tensor.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sigmoid.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.sin](https://pytorch.org/docs/2.1/generated/torch.Tensor.sin.html)| [mindspore.Tensor.sin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sin.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.sort](https://pytorch.org/docs/2.1/generated/torch.Tensor.sort.html) | [mindspore.Tensor.sort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sort.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.split](https://pytorch.org/docs/2.1/generated/torch.Tensor.split.html) | [mindspore.Tensor.split](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.split.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.sqrt](https://pytorch.org/docs/2.1/generated/torch.Tensor.sqrt.html) | [mindspore.Tensor.sqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sqrt.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.square](https://pytorch.org/docs/2.1/generated/torch.Tensor.square.html)| [mindspore.Tensor.square](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.square.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.sub](https://pytorch.org/docs/2.1/generated/torch.Tensor.sub.html) | [mindspore.Tensor.sub](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sub.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.sum](https://pytorch.org/docs/2.1/generated/torch.Tensor.sum.html) | [mindspore.Tensor.sum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sum.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.t](https://pytorch.org/docs/2.1/generated/torch.Tensor.t.html) | [mindspore.Tensor.t](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.t.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.tanh](https://pytorch.org/docs/2.1/generated/torch.Tensor.tanh.html) | [mindspore.Tensor.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tanh.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.tile](https://pytorch.org/docs/2.1/generated/torch.Tensor.tile.html) | [mindspore.Tensor.tile](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tile.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.topk](https://pytorch.org/docs/2.1/generated/torch.Tensor.topk.html)| [mindspore.Tensor.topk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.topk.html)|[Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.tril](https://pytorch.org/docs/2.1/generated/torch.Tensor.tril.html) | [mindspore.Tensor.tril](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tril.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.trunc](https://pytorch.org/docs/2.1/generated/torch.Tensor.trunc.html) | [mindspore.Tensor.trunc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.trunc.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions)| +| [torch.Tensor.view_as](https://pytorch.org/docs/2.1/generated/torch.Tensor.view_as.html) | [mindspore.Tensor.view_as](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.view_as.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | +| [torch.Tensor.where](https://pytorch.org/docs/2.1/generated/torch.Tensor.where.html) | [mindspore.Tensor.where](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.where.html) | [Consistent](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_api_mapping.html#api-mapping-consistency-criteria-and-exceptions) | ## torch.optim -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | +| PyTorch 2.1 APIs | MindSpore APIs | Descriptions | |------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------| -| [torch.optim.Adadelta](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adadelta) | [mindspore.nn.Adadelta](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Adadelta.html) | Consistent | -| [torch.optim.Adagrad](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adagrad) | [mindspore.nn.Adagrad](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Adagrad.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Adagrad.html) | -| [torch.optim.Adam](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adam) | [mindspore.nn.Adam](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Adam.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Adam.html) | -| [torch.optim.AdaMax](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.AdaMax) | [mindspore.nn.AdaMax](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdaMax.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AdaMax.html) | -| [torch.optim.AdamW](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.AdamW) | [mindspore.nn.AdamWeightDecay](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.AdamWeightDecay.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/AdamWeightDecay.html)| -| [torch.optim.ASGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.ASGD) | [mindspore.nn.ASGD](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.ASGD.html) | Consistent | -| [torch.optim.Optimizer](https://pytorch.org/docs/1.8.0/optim.html#torch.optim.Optimizer) | [mindspore.nn.Optimizer](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Optimizer.html#mindspore.nn.Optimizer) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Optimizer.html) | -| [torch.optim.SparseAdam](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.SparseAdam) | [mindspore.nn.LazyAdam](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.LazyAdam.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/SparseAdam.html) | -| [torch.optim.RMSProp](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.RMSProp) | [mindspore.nn.RMSProp](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.RMSProp.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/RMSProp.html) | -| [torch.optim.Rprop](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Rprop) | [mindspore.nn.Rprop](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.Rprop.html) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/Rprop.html) | -| [torch.optim.SGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.SGD) | [mindspore.nn.SGD](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.SGD.html) | Consistent | -| [torch.optim.lr_scheduler.CosineAnnealingLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CosineAnnealingLR) | [mindspore.nn.cosine_decay_lr](https://www.mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.cosine_decay_lr.html#mindspore.nn.cosine_decay_lr) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/CosineDecayLr.html) | -| [torch.optim.lr_scheduler.ExponentialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ExponentialLR) | [mindspore.nn.exponential_decay_lr](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.exponential_decay_lr.html#mindspore.nn.exponential_decay_lr) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/ExponentialDecayLR.html) | -| [torch.optim.lr_scheduler.MultiStepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.MultiStepLR) | [mindspore.nn.piecewise_constant_lr](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.piecewise_constant_lr.html#mindspore.nn.piecewise_constant_lr) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/PiecewiseConstantLR.html) | -| [torch.optim.lr_scheduler.StepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.StepLR) | [mindspore.nn.piecewise_constant_lr](https://mindspore.cn/docs/en/master/api_python/nn/mindspore.nn.piecewise_constant_lr.html#mindspore.nn.piecewise_constant_lr) | [diff](https://www.mindspore.cn/docs/en/master/note/api_mapping/pytorch_diff/PiecewiseConstantLR.html) | - -## torch.optim - -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.optim.Adadelta](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adadelta) | [mindspore.experimental.optim.Adadelta](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.Adadelta.html) | Consistent | -| [torch.optim.Adagrad](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adagrad) | [mindspore.experimental.optim.Adagrad](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.Adagrad.html) | Consistent | -| [torch.optim.Adam](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adam) | [mindspore.experimental.optim.Adam](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.Adam.html) | Consistent | -| [torch.optim.Adamax](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adamax) | [mindspore.experimental.optim.Adamax](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.Adamax.html) | Consistent | -| [torch.optim.AdamW](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.AdamW) | [mindspore.experimental.optim.AdamW](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.AdamW.html) | Consistent | -| [torch.optim.ASGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.ASGD) | [mindspore.experimental.optim.ASGD](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.ASGD.html) | Consistent | -| [torch.optim.NAdam](https://pytorch.org/docs/1.12/generated/torch.optim.NAdam.html) | [mindspore.experimental.optim.NAdam](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.NAdam.html) | Consistent | -| [torch.optim.RAdam](https://pytorch.org/docs/1.12/generated/torch.optim.RAdam.html) | [mindspore.experimental.optim.RAdam](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.RAdam.html) | Consistent | -| [torch.optim.RMSprop](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.RMSprop) | [mindspore.experimental.optim.RMSprop](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.RMSprop.html) | Consistent | -| [torch.optim.Rprop](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Rprop) | [mindspore.experimental.optim.Rprop](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.Rprop.html) | Consistent | -| [torch.optim.SGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.SGD) | [mindspore.experimental.optim.SGD](https://mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.SGD.html) | Consistent | - -## torch.optim.lr_scheduler - -| PyTorch 1.8.1 APIs | MindSpore APIs | Descriptions | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.optim.lr_scheduler.LRScheduler](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.LRScheduler) | [mindspore.experimental.optim.lr_scheduler.LRScheduler](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.LRScheduler.html#mindspore.experimental.optim.lr_scheduler.LRScheduler) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.ConstantLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ConstantLR) | [mindspore.experimental.optim.lr_scheduler.ConstantLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.ConstantLR.html#mindspore.experimental.optim.lr_scheduler.ConstantLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.CosineAnnealingLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CosineAnnealingLR) | [mindspore.experimental.optim.lr_scheduler.CosineAnnealingLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.CosineAnnealingLR.html#mindspore.experimental.optim.lr_scheduler.CosineAnnealingLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.CosineAnnealingWarmRestarts](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CosineAnnealingWarmRestarts) | [mindspore.experimental.optim.lr_scheduler.CosineAnnealingWarmRestarts](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.CosineAnnealingWarmRestarts.html#mindspore.experimental.optim.lr_scheduler.CosineAnnealingWarmRestarts) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.CyclicLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CyclicLR) | [mindspore.experimental.optim.lr_scheduler.CyclicLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.CyclicLR.html#mindspore.experimental.optim.lr_scheduler.CyclicLR) | No `verbose` and `momentum` related input params, other functions are consistent | -| [torch.optim.lr_scheduler.ExponentialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ExponentialLR) | [mindspore.experimental.optim.lr_scheduler.ExponentialLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.ExponentialLR.html#mindspore.experimental.optim.lr_scheduler.ExponentialLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.LambdaLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.LambdaLR) | [mindspore.experimental.optim.lr_scheduler.LambdaLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.LambdaLR.html#mindspore.experimental.optim.lr_scheduler.LambdaLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.LinearLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.LinearLR) | [mindspore.experimental.optim.lr_scheduler.LinearLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.LinearLR.html#mindspore.experimental.optim.lr_scheduler.LinearLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.MultiplicativeLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.MultiplicativeLR) | [mindspore.experimental.optim.lr_scheduler.MultiplicativeLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.MultiplicativeLR.html#mindspore.experimental.optim.lr_scheduler.MultiplicativeLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.MultiStepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.MultiStepLR) | [mindspore.experimental.optim.lr_scheduler.MultiStepLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.MultiStepLR.html#mindspore.experimental.optim.lr_scheduler.MultiStepLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.PolynomialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.PolynomialLR) | [mindspore.experimental.optim.lr_scheduler.PolynomialLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.PolynomialLR.html#mindspore.experimental.optim.lr_scheduler.PolynomialLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.ReduceLROnPlateau](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ReduceLROnPlateau) | [mindspore.experimental.optim.lr_scheduler.ReduceLROnPlateau](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.ReduceLROnPlateau.html#mindspore.experimental.optim.lr_scheduler.ReduceLROnPlateau) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.SequentialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.SequentialLR) | [mindspore.experimental.optim.lr_scheduler.SequentialLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.SequentialLR.html#mindspore.experimental.optim.lr_scheduler.SequentialLR) | No `verbose` input param, other functions are consistent | -| [torch.optim.lr_scheduler.StepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.StepLR) | [mindspore.experimental.optim.lr_scheduler.StepLR](https://www.mindspore.cn/docs/en/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.StepLR.html#mindspore.experimental.optim.lr_scheduler.StepLR) | No `verbose` input param, other functions are consistent | +| [torch.optim.Adam](https://pytorch.org/docs/2.1/optim.html#torch.optim.Adam) | [mindspore.mint.optim.Adam](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.optim.Adam.html) | The functions are consistent, but the parameter data types are inconsistent | +| [torch.optim.AdamW](https://pytorch.org/docs/2.1/optim.html#torch.optim.AdamW) | [mindspore.mint.optim.AdamW](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.optim.AdamW.html) | The functions are consistent, but the parameter data types are inconsistent | ## torch.utils diff --git a/docs/mindspore/source_zh_cn/note/api_mapping/pytorch_api_mapping.md b/docs/mindspore/source_zh_cn/note/api_mapping/pytorch_api_mapping.md index 3638874ff7899fe5dc53e6cc09bf870c3bf908e4..a235be8d15f747cfd701a23f1488f51806dcf3fb 100644 --- a/docs/mindspore/source_zh_cn/note/api_mapping/pytorch_api_mapping.md +++ b/docs/mindspore/source_zh_cn/note/api_mapping/pytorch_api_mapping.md @@ -25,9 +25,9 @@ API映射一致标准:API功能一致,参数个数或顺序一致,参数 **例外场景4**:MindSpore将API中与PyTorch重载机制相关参数的默认值设置为None,PyTorch对应API的相应参数无默认值。 下面是例外场景4的举例, -在PyTorch 1.8.1中,torch.argmax具有两种API重载形式,分别是torch.argmax(input)和torch.argmax(input, dim, keepdim=False),其中torch.argmax(input)返回输入Tensor中的最大值元素的索引,torch.argmax(input, dim, keepdim=False)返回输入Tensor在指定轴上最大值的索引。 +在PyTorch 2.1中,torch.argmax具有两种API重载形式,分别是torch.argmax(input)和torch.argmax(input, dim, keepdim=False),其中torch.argmax(input)返回输入Tensor中的最大值元素的索引,torch.argmax(input, dim, keepdim=False)返回输入Tensor在指定轴上最大值的索引。 -mindspore.ops.argmax只有一种API形式,即mindspore.ops.argmax(input, dim=None, keepdim=False),但mindspore.ops.argmax(input)与torch.argmax(input)功能相同,mindspore.ops.argmax(input, dim, keepdim)与torch.argmax(input, dim, keepdim)功能相同。相较于torch.argmax,mindspore.ops.argmax参数dim的默认值被设置为None,仅是为了适配torch.argmax的两种API重载形式,因此例外场景4也被认为是API映射一致。 +mindspore.mint.argmax只有一种API形式,即mindspore.mint.argmax(input, dim=None, keepdim=False),但mindspore.mint.argmax(input)与torch.argmax(input)功能相同,mindspore.mint.argmax(input, dim, keepdim)与torch.argmax(input, dim, keepdim)功能相同。相较于torch.argmax,mindspore.mint.argmax参数dim的默认值被设置为None,仅是为了适配torch.argmax的两种API重载形式,因此例外场景4也被认为是API映射一致。 ## 通用差异参数表 @@ -42,870 +42,462 @@ mindspore.ops.argmax只有一种API形式,即mindspore.ops.argmax(input, dim=N | pin_memory | 表示是否使用锁页内存 | MindSpore目前无此机制 | | memory_format | 表示Tensor的内存格式 | MindSpore目前无此机制 | | stable | 表示是否稳定排序 | 一般用在排序算法的API中,MindSpore目前无此功能 | -| inplace | 表示在不更改变量内存地址的情况下,直接修改变量的值 | MindSpore目前提供少量inplace的API,例如`assign_add`等 | | sparse_grad | 表示是否对梯度稀疏化 | MindSpore目前无此机制 | | size_average | PyTorch废弃参数 | MindSpore中可以使用`reduction`参数替代 | | reduce | PyTorch废弃参数 | MindSpore中可以使用`reduction`参数替代 | ## torch -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | -| [torch.abs](https://pytorch.org/docs/1.8.1/generated/torch.abs.html) | [mindspore.ops.abs](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.abs.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.absolute](https://pytorch.org/docs/1.8.1/generated/torch.absolute.html) | [mindspore.ops.absolute](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.absolute.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.acos](https://pytorch.org/docs/1.8.1/generated/torch.acos.html) | [mindspore.ops.acos](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.acos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.acosh](https://pytorch.org/docs/1.8.1/generated/torch.acosh.html)| [mindspore.ops.acosh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.acosh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.add](https://pytorch.org/docs/1.8.1/generated/torch.add.html)| [mindspore.ops.add](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.add.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.addbmm](https://pytorch.org/docs/1.8.1/generated/torch.addbmm.html) | [mindspore.ops.addbmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.addbmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.addcdiv](https://pytorch.org/docs/1.8.1/generated/torch.addcdiv.html)| [mindspore.ops.addcdiv](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.addcdiv.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.addcmul](https://pytorch.org/docs/1.8.1/generated/torch.addcmul.html)| [mindspore.ops.addcmul](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.addcmul.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.addmm](https://pytorch.org/docs/1.8.1/generated/torch.addmm.html) | [mindspore.ops.addmm](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.addmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.addmv](https://pytorch.org/docs/1.8.1/generated/torch.addmv.html) | [mindspore.ops.addmv](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.addmv.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.addr](https://pytorch.org/docs/1.8.1/generated/torch.addr.html) | [mindspore.ops.addr](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.addr.html) | 功能一致,参数名不同| -| [torch.all](https://pytorch.org/docs/1.8.1/generated/torch.all.html#torch.all) | [mindspore.ops.all](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.all.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/all.html) | -| [torch.amax](https://pytorch.org/docs/1.8.1/generated/torch.amax.html#torch.amax) | [mindspore.ops.amax](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.amax.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/amax.html) | -| [torch.amin](https://pytorch.org/docs/1.8.1/generated/torch.amin.html#torch.amin) | [mindspore.ops.amin](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.amin.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/amin.html) | -| [torch.angle](https://pytorch.org/docs/1.8.1/generated/torch.angle.html) | [mindspore.ops.angle](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.angle.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.any](https://pytorch.org/docs/1.8.1/generated/torch.any.html#torch.any) | [mindspore.ops.any](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.any.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/any.html) | -| [torch.arange](https://pytorch.org/docs/1.8.1/generated/torch.arange.html)| [mindspore.ops.arange](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.arange.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.arccos](https://pytorch.org/docs/1.8.1/generated/torch.arccos.html) | [mindspore.ops.arccos](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.arccos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.arccosh](https://pytorch.org/docs/1.8.1/generated/torch.arccosh.html) | [mindspore.ops.arccosh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.arccosh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.arcsin](https://pytorch.org/docs/1.8.1/generated/torch.arcsin.html) | [mindspore.ops.arcsin](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.arcsin.html) | 功能一致,参数名不同| -| [torch.arcsinh](https://pytorch.org/docs/1.8.1/generated/torch.arcsinh.html) | [mindspore.ops.arcsinh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.arcsinh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.arctan](https://pytorch.org/docs/1.8.1/generated/torch.arctan.html) | [mindspore.ops.arctan](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.arctan.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.arctanh](https://pytorch.org/docs/1.8.1/generated/torch.arctanh.html) | [mindspore.ops.arctanh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.arctanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.argmax](https://pytorch.org/docs/1.8.1/generated/torch.argmax.html) | [mindspore.ops.argmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.argmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.argmin](https://pytorch.org/docs/1.8.1/generated/torch.argmin.html) | [mindspore.ops.argmin](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.argmin.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/argmin.html) | -| [torch.argsort](https://pytorch.org/docs/1.8.1/generated/torch.argsort.html) | [mindspore.ops.argsort](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.argsort.html) |功能一致,参数名不同| -| [torch.asin](https://pytorch.org/docs/1.8.1/generated/torch.asin.html) | [mindspore.ops.asin](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.asin.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.asinh](https://pytorch.org/docs/1.8.1/generated/torch.asinh.html)| [mindspore.ops.asinh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.asinh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.atan](https://pytorch.org/docs/1.8.1/generated/torch.atan.html) | [mindspore.ops.atan](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.atan.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.atan2](https://pytorch.org/docs/1.8.1/generated/torch.atan2.html) | [mindspore.ops.atan2](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.atan2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.atanh](https://pytorch.org/docs/1.8.1/generated/torch.atanh.html)| [mindspore.ops.atanh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.atanh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.atleast_1d](https://pytorch.org/docs/1.8.1/generated/torch.atleast_1d.html) | [mindspore.ops.atleast_1d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.atleast_1d.html) | 功能一致,参数名不同 | -| [torch.atleast_2d](https://pytorch.org/docs/1.8.1/generated/torch.atleast_2d.html) | [mindspore.ops.atleast_2d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.atleast_2d.html) | 功能一致,参数名不同 | -| [torch.atleast_3d](https://pytorch.org/docs/1.8.1/generated/torch.atleast_3d.html) | [mindspore.ops.atleast_3d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.atleast_3d.html) | 功能一致,参数名不同 | -| [torch.baddbmm](https://pytorch.org/docs/1.8.1/generated/torch.baddbmm.html) | [mindspore.ops.baddbmm](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.baddbmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.bartlett_window](https://pytorch.org/docs/1.8.1/generated/torch.bartlett_window.html) | [mindspore.ops.bartlett_window](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bartlett_window.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.bernoulli](https://pytorch.org/docs/1.8.1/generated/torch.bernoulli.html) | [mindspore.ops.bernoulli](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bernoulli.html) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/bernoulli.html) | -| [torch.bincount](https://pytorch.org/docs/1.8.1/generated/torch.bincount.html) | [mindspore.ops.bincount](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bincount.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.bitwise_and](https://pytorch.org/docs/1.8.1/generated/torch.bitwise_and.html) | [mindspore.ops.bitwise_and](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bitwise_and.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.bitwise_or](https://pytorch.org/docs/1.8.1/generated/torch.bitwise_or.html) | [mindspore.ops.bitwise_or](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bitwise_or.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.bitwise_xor](https://pytorch.org/docs/1.8.1/generated/torch.bitwise_xor.html) | [mindspore.ops.bitwise_xor](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bitwise_xor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.blackman_window](https://pytorch.org/docs/1.8.1/generated/torch.blackman_window.html) | [mindspore.ops.blackman_window](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.blackman_window.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.block_diag](https://pytorch.org/docs/1.8.1/generated/torch.block_diag.html) | [mindspore.ops.block_diag](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.block_diag.html) | 功能一致,参数名不同 | -| [torch.bmm](https://pytorch.org/docs/1.8.1/generated/torch.bmm.html) | [mindspore.ops.bmm](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bmm.html) | 功能一致,参数名不同 | -| [torch.bucketize](https://pytorch.org/docs/1.8.1/generated/torch.bucketize.html) | [mindspore.ops.bucketize](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bucketize.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/bucketize.html) | -| [torch.broadcast_to](https://pytorch.org/docs/1.8.1/generated/torch.broadcast_to.html) | [mindspore.ops.broadcast_to](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.broadcast_to.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/broadcast_to.html) | -| [torch.cat](https://pytorch.org/docs/1.8.1/generated/torch.cat.html) | [mindspore.ops.cat](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cat.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/cat.html) | -| [torch.cdist](https://pytorch.org/docs/1.8.1/generated/torch.cdist.html) | [mindspore.ops.cdist](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cdist.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/cdist.html) | -| [torch.ceil](https://pytorch.org/docs/1.8.1/generated/torch.ceil.html) | [mindspore.ops.ceil](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ceil.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.cholesky](https://pytorch.org/docs/1.8.1/generated/torch.cholesky.html) | [mindspore.ops.cholesky](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cholesky.html) | 功能一致,参数名不同 | -| [torch.cholesky_solve](https://pytorch.org/docs/1.8.1/generated/torch.cholesky_solve.html) | [mindspore.ops.cholesky_solve](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cholesky_solve.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.chunk](https://pytorch.org/docs/1.8.1/generated/torch.chunk.html) | [mindspore.ops.chunk](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.chunk.html) | 功能一致,参数名不同 | -| [torch.clamp](https://pytorch.org/docs/1.8.1/generated/torch.clamp.html) | [mindspore.ops.clamp](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.clamp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.clip](https://pytorch.org/docs/1.8.1/generated/torch.clip.html) | [mindspore.ops.clip](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.clip.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.column_stack](https://pytorch.org/docs/1.8.1/generated/torch.column_stack.html) | [mindspore.ops.column_stack](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.column_stack.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.combinations](https://pytorch.org/docs/1.8.1/generated/torch.combinations.html) | [mindspore.ops.combinations](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.combinations.html) | 功能一致,参数名不同 | -| [torch.conj](https://pytorch.org/docs/1.8.1/generated/torch.conj.html) | [mindspore.ops.conj](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.conj.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.copysign](https://pytorch.org/docs/1.8.1/generated/torch.copysign.html) | [mindspore.ops.copysign](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.copysign.html) | 功能一致,参数名不同| -| [torch.cos](https://pytorch.org/docs/1.8.1/generated/torch.cos.html) | [mindspore.ops.cos](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cos.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/cos.html) | -| [torch.cosh](https://pytorch.org/docs/1.8.1/generated/torch.cosh.html) | [mindspore.ops.cosh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cosh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.count_nonzero](https://pytorch.org/docs/1.8.1/generated/torch.count_nonzero.html) | [mindspore.ops.count_nonzero](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.count_nonzero.html) | 功能一致,参数名不同 | -| [torch.cross](https://pytorch.org/docs/1.8.1/generated/torch.cross.html) | [mindspore.ops.cross](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cross.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.cummax](https://pytorch.org/docs/1.8.1/generated/torch.cummax.html) | [mindspore.ops.cummax](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cummax.html) |功能一致,参数名不同| -| [torch.cummin](https://pytorch.org/docs/1.8.1/generated/torch.cummin.html) | [mindspore.ops.cummin](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cummin.html) |功能一致,参数名不同| -| [torch.cumprod](https://pytorch.org/docs/1.8.1/generated/torch.cumprod.html) | [mindspore.ops.cumprod](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cumprod.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.cumsum](https://pytorch.org/docs/1.8.1/generated/torch.cumsum.html) | [mindspore.ops.cumsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cumsum.html) | 功能一致,参数名不同 | -| [torch.deg2rad](https://pytorch.org/docs/1.8.1/generated/torch.deg2rad.html) | [mindspore.ops.deg2rad](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.deg2rad.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/deg2rad.html) | -| [torch.diag](https://pytorch.org/docs/1.8.1/generated/torch.diag.html) | [mindspore.ops.diag](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.diag.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/diag.html) | -| [torch.diag_embed](https://pytorch.org/docs/1.8.1/generated/torch.diag_embed.html) | [mindspore.ops.diag_embed](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.diag_embed.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.diagflat](https://pytorch.org/docs/1.8.1/generated/torch.diagflat.html) | [mindspore.ops.diagflat](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.diagflat.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.diagonal](https://pytorch.org/docs/1.8.1/generated/torch.diagonal.html) | [mindspore.ops.diagonal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.diagonal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.diff](https://pytorch.org/docs/1.8.1/generated/torch.diff.html) | [mindspore.ops.diff](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.diff.html) | 功能一致,参数名不同 | -| [torch.digamma](https://pytorch.org/docs/1.8.1/generated/torch.digamma.html) | [mindspore.ops.digamma](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.digamma.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.dist](https://pytorch.org/docs/1.8.1/generated/torch.dist.html) | [mindspore.ops.dist](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.dist.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.div](https://pytorch.org/docs/1.8.1/generated/torch.div.html) | [mindspore.ops.div](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.div.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.divide](https://pytorch.org/docs/1.8.1/generated/torch.divide.html) | [mindspore.ops.divide](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.divide.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.dot](https://pytorch.org/docs/1.8.1/generated/torch.dot.html) | [mindspore.ops.tensor_dot](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tensor_dot.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/tensor_dot.html) | -| [torch.dstack](https://pytorch.org/docs/1.8.1/generated/torch.dstack.html) | [mindspore.ops.dstack](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.dstack.html) | 功能一致,参数名不同 | -| [torch.einsum](https://pytorch.org/docs/1.8.1/generated/torch.einsum.html) | [mindspore.ops.einsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.einsum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.eq](https://pytorch.org/docs/1.8.1/generated/torch.eq.html) | [mindspore.ops.equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.erf](https://pytorch.org/docs/1.8.1/generated/torch.erf.html) | [mindspore.ops.erf](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.erf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.erfc](https://pytorch.org/docs/1.8.1/generated/torch.erfc.html) | [mindspore.ops.erfc](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.erfc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.erfinv](https://pytorch.org/docs/1.8.1/generated/torch.erfinv.html) | [mindspore.ops.erfinv](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.erfinv.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/erfinv.html) | -| [torch.exp](https://pytorch.org/docs/1.8.1/generated/torch.exp.html) | [mindspore.ops.exp](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.exp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.exp2](https://pytorch.org/docs/1.8.1/generated/torch.exp2.html) | [mindspore.ops.exp2](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.exp2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.expm1](https://pytorch.org/docs/1.8.1/generated/torch.expm1.html) | [mindspore.ops.expm1](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.expm1.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.eye](https://pytorch.org/docs/1.8.1/generated/torch.eye.html) | [mindspore.ops.eye](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.eye.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.flatten](https://pytorch.org/docs/1.8.1/generated/torch.flatten.html) | [mindspore.ops.flatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.flatten.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/flatten.html) | -| [torch.float_power](https://pytorch.org/docs/1.8.1/generated/torch.float_power.html) | [mindspore.ops.float_power](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.float_power.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/float_power.html) | -| [torch.flip](https://pytorch.org/docs/1.8.1/generated/torch.flip.html) | [mindspore.ops.flip](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.flip.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.fliplr](https://pytorch.org/docs/1.8.1/generated/torch.fliplr.html) | [mindspore.ops.fliplr](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.fliplr.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.flipud](https://pytorch.org/docs/1.8.1/generated/torch.flipud.html) | [mindspore.ops.flipud](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.flipud.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.floor](https://pytorch.org/docs/1.8.1/generated/torch.floor.html) | [mindspore.ops.floor](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.floor.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/floor.html) | -| [torch.floor_divide](https://pytorch.org/docs/1.8.1/generated/torch.floor_divide.html) | [mindspore.ops.floor_divide](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.floor_divide.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.fmax](https://pytorch.org/docs/1.8.1/generated/torch.fmax.html) | [mindspore.ops.fmax](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.fmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.fmod](https://pytorch.org/docs/1.8.1/generated/torch.fmod.html) | [mindspore.ops.fmod](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.fmod.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.frac](https://pytorch.org/docs/1.8.1/generated/torch.frac.html) | [mindspore.ops.frac](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.frac.html) | 功能一致,参数名不同 | -| [torch.full](https://pytorch.org/docs/1.8.1/generated/torch.full.html) | [mindspore.ops.full](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.full.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.full_like](https://pytorch.org/docs/1.8.1/generated/torch.full_like.html) | [mindspore.ops.full_like](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.full_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.gcd](https://pytorch.org/docs/1.8.1/generated/torch.gcd.html) | [mindspore.ops.gcd](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.gcd.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.ge](https://pytorch.org/docs/1.8.1/generated/torch.ge.html) | [mindspore.ops.ge](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ge.html) | 功能一致,参数名不同 | -| [torch.geqrf](https://pytorch.org/docs/1.8.1/generated/torch.geqrf.html) | [mindspore.ops.geqrf](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.geqrf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.ger](https://pytorch.org/docs/1.8.1/generated/torch.ger.html) | [mindspore.ops.ger](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ger.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/ger.html) | -| [torch.greater](https://pytorch.org/docs/1.8.1/generated/torch.greater.html) | [mindspore.ops.greater](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.greater.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.greater_equal](https://pytorch.org/docs/1.8.1/generated/torch.greater_equal.html) | [mindspore.ops.greater_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.greater_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.gt](https://pytorch.org/docs/1.8.1/generated/torch.gt.html) | [mindspore.ops.gt](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.gt.html) | 功能一致,参数名不同 | -| [torch.hann_window](https://pytorch.org/docs/1.8.1/generated/torch.hann_window.html) | [mindspore.ops.hann_window](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hann_window.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.heaviside](https://pytorch.org/docs/1.8.1/generated/torch.heaviside.html) | [mindspore.ops.heaviside](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.heaviside.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.hstack](https://pytorch.org/docs/1.8.1/generated/torch.hstack.html) | [mindspore.ops.hstack](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hstack.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.histc](https://pytorch.org/docs/1.8.1/generated/torch.histc.html) | [mindspore.ops.histc](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.histc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.hypot](https://pytorch.org/docs/1.8.1/generated/torch.hypot.html) | [mindspore.ops.hypot](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hypot.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.hamming_window](https://pytorch.org/docs/1.8.1/generated/torch.hamming_window.html) | [mindspore.ops.hamming_window](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hamming_window.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.i0](https://pytorch.org/docs/1.8.1/generated/torch.i0.html) | [mindspore.ops.i0](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.i0.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.igamma](https://pytorch.org/docs/1.8.1/generated/torch.igamma.html)| [mindspore.ops.igamma](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.igamma.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.igammac](https://pytorch.org/docs/1.8.1/generated/torch.igammac.html)| [mindspore.ops.igammac](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.igammac.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.imag](https://pytorch.org/docs/1.8.1/generated/torch.imag.html) | [mindspore.ops.imag](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.imag.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.index_select](https://pytorch.org/docs/1.8.1/generated/torch.index_select.html) | [mindspore.ops.index_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.index_select.html) | 功能一致,参数名不同 | -| [torch.inner](https://pytorch.org/docs/1.8.1/generated/torch.inner.html) | [mindspore.ops.inner](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.inner.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.inverse](https://pytorch.org/docs/1.8.1/generated/torch.inverse.html) | [mindspore.ops.inverse](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.inverse.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.isclose](https://pytorch.org/docs/1.8.1/generated/torch.isclose.html) | [mindspore.ops.isclose](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.isclose.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/isclose.html) | -| [torch.isfinite](https://pytorch.org/docs/1.8.1/generated/torch.isfinite.html) | [mindspore.ops.isfinite](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.isfinite.html) | 功能一致,参数名不同 | -| [torch.isinf](https://pytorch.org/docs/1.8.1/generated/torch.isinf.html) | [mindspore.ops.isinf](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.isinf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.isnan](https://pytorch.org/docs/1.8.1/generated/torch.isnan.html) | [mindspore.ops.isnan](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.isnan.html) | 功能一致,参数名不同 | -| [torch.isneginf](https://pytorch.org/docs/1.8.1/generated/torch.isneginf.html) | [mindspore.ops.isneginf](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.isneginf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.isposinf](https://pytorch.org/docs/1.8.1/generated/torch.isposinf.html) | [mindspore.ops.isposinf](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.isposinf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.isreal](https://pytorch.org/docs/1.8.1/generated/torch.isreal.html) | [mindspore.ops.isreal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.isreal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.is_complex](https://pytorch.org/docs/1.8.1/generated/torch.is_complex.html) | [mindspore.ops.is_complex](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.is_complex.html) | 功能一致,参数名不同| -| [torch.is_floating_point](https://pytorch.org/docs/1.8.1/generated/torch.is_floating_point.html) | [mindspore.ops.is_floating_point](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.is_floating_point.html) | 功能一致,参数名不同| -| [torch.is_nonzero](https://pytorch.org/docs/1.8.1/generated/torch.is_nonzero.html#torch.is_nonzero) | [mindspore.ops.is_nonzero](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.is_nonzero.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.is_tensor](https://pytorch.org/docs/1.8.1/generated/torch.is_tensor.html#torch.is_tensor) | [mindspore.ops.is_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.is_tensor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.kaiser_window](https://pytorch.org/docs/1.8.1/generated/torch.kaiser_window.html) | [mindspore.ops.kaiser_window](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.kaiser_window.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.kron](https://pytorch.org/docs/1.8.1/generated/torch.kron.html) | [mindspore.ops.kron](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.kron.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.lcm](https://pytorch.org/docs/1.8.1/generated/torch.lcm.html) | [mindspore.ops.lcm](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.lcm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.ldexp](https://pytorch.org/docs/1.8.1/generated/torch.ldexp.html) | [mindspore.ops.ldexp](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ldexp.html) | 功能一致,参数名不同| -| [torch.le](https://pytorch.org/docs/1.8.1/generated/torch.le.html) | [mindspore.ops.le](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.le.html) | 功能一致,参数名不同 | -| [torch.lerp](https://pytorch.org/docs/1.8.1/generated/torch.lerp.html) | [mindspore.ops.lerp](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.lerp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.less](https://pytorch.org/docs/1.8.1/generated/torch.less.html) | [mindspore.ops.less](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.less.html) | 功能一致,参数名不同 | -| [torch.less_equal](https://pytorch.org/docs/1.8.1/generated/torch.less_equal.html) | [mindspore.ops.less_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.less_equal.html) | 功能一致,参数名不同 | -| [torch.linalg.cond](https://pytorch.org/docs/1.8.1/linalg.html#torch.linalg.cond) | [mindspore.ops.cond](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cond.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.linalg.eigvals](https://pytorch.org/docs/stable/generated/torch.linalg.eigvals.html#torch.linalg.eigvals) | [mindspore.ops.eigvals](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.eigvals.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.linalg.norm](https://pytorch.org/docs/1.8.1/linalg.html#torch.linalg.norm) | [mindspore.ops.norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.norm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.linspace](https://pytorch.org/docs/1.8.1/generated/torch.linspace.html) | [mindspore.ops.linspace](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.linspace.html) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/linspace.html) | -| [torch.log](https://pytorch.org/docs/1.8.1/generated/torch.log.html) | [mindspore.ops.log](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.log.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/log.html) | -| [torch.log2](https://pytorch.org/docs/1.8.1/generated/torch.log2.html) | [mindspore.ops.log2](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.log2.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/log2.html) | -| [torch.log10](https://pytorch.org/docs/1.8.1/generated/torch.log10.html) | [mindspore.ops.log10](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.log10.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/log10.html) | -| [torch.logaddexp](https://pytorch.org/docs/1.8.1/generated/torch.logaddexp.html) | [mindspore.ops.logaddexp](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logaddexp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logaddexp2](https://pytorch.org/docs/1.8.1/generated/torch.logaddexp2.html) | [mindspore.ops.logaddexp2](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logaddexp2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logcumsumexp](https://pytorch.org/docs/1.8.1/generated/torch.logcumsumexp.html) | [mindspore.ops.logcumsumexp](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logcumsumexp.html) | 功能一致,参数名不同 | -| [torch.log1p](https://pytorch.org/docs/1.8.1/generated/torch.log1p.html#torch.log1p) | [mindspore.ops.log1p](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.log1p.html#mindspore.ops.log1p) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logdet](https://pytorch.org/docs/1.8.1/generated/torch.logdet.html#torch.logdet) | [mindspore.ops.logdet](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logdet.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logical_and](https://pytorch.org/docs/1.8.1/generated/torch.logical_and.html) | [mindspore.ops.logical_and](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logical_and.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logical_not](https://pytorch.org/docs/1.8.1/generated/torch.logical_not.html) | [mindspore.ops.logical_not](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logical_not.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logical_or](https://pytorch.org/docs/1.8.1/generated/torch.logical_or.html) | [mindspore.ops.logical_or](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logical_or.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logical_xor](https://pytorch.org/docs/1.8.1/generated/torch.logical_xor.html) | [mindspore.ops.logical_xor](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logical_xor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logit](https://pytorch.org/docs/1.8.1/generated/torch.logit.html)| [mindspore.ops.logit](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logit.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.logspace](https://pytorch.org/docs/1.8.1/generated/torch.logspace.html) | [mindspore.ops.logspace](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logspace.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.logsumexp](https://pytorch.org/docs/1.8.1/generated/torch.logsumexp.html) | [mindspore.ops.logsumexp](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logsumexp.html) | 功能一致,参数名不同 | -| [torch.lt](https://pytorch.org/docs/1.8.1/generated/torch.lt.html) | [mindspore.ops.lt](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.lt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.lu_solve](https://pytorch.org/docs/1.8.1/generated/torch.lu_solve.html) | [mindspore.ops.lu_solve](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.lu_solve.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.lu_unpack](https://pytorch.org/docs/1.8.1/generated/torch.lu_unpack.html) | [mindspore.ops.lu_unpack](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.lu_unpack.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.masked_select](https://pytorch.org/docs/1.8.1/generated/torch.masked_select.html) | [mindspore.ops.masked_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.masked_select.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.matmul](https://pytorch.org/docs/1.8.1/generated/torch.matmul.html#torch.matmul) | [mindspore.ops.matmul](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.matmul.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.max](https://pytorch.org/docs/1.8.1/generated/torch.max.html) | [mindspore.ops.max](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.max.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/max.html) | -| [torch.maximum](https://pytorch.org/docs/1.8.1/generated/torch.maximum.html) | [mindspore.ops.maximum](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.maximum.html) | 功能一致,参数名不同 | -| [torch.mean](https://pytorch.org/docs/1.8.1/generated/torch.mean.html) | [mindspore.ops.mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.mean.html) | 功能一致,参数名不同 | -| [torch.median](https://pytorch.org/docs/1.8.1/generated/torch.median.html) | [mindspore.ops.median](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.median.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/median.html) | -| [torch.meshgrid](https://pytorch.org/docs/1.8.1/generated/torch.meshgrid.html#torch.meshgrid) | [mindspore.ops.meshgrid](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.meshgrid.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/meshgrid.html) | -| [torch.mm](https://pytorch.org/docs/1.8.1/generated/torch.mm.html)| [mindspore.ops.mm](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.mm.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.mul](https://pytorch.org/docs/1.8.1/generated/torch.mul.html#torch.mul) | [mindspore.ops.mul](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.mul.html#mindspore.ops.mul) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.min](https://pytorch.org/docs/1.8.1/generated/torch.min.html) | [mindspore.ops.min](https://www.mindspore.cn/docs/zh-CN//master/api_python/ops/mindspore.ops.min.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/min.html)| -| [torch.minimum](https://pytorch.org/docs/1.8.1/generated/torch.minimum.html) | [mindspore.ops.minimum](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.minimum.html) | 功能一致,参数名不同 | -| [torch.msort](https://pytorch.org/docs/1.8.1/generated/torch.msort.html) | [mindspore.ops.msort](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.msort.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.moveaxis](https://pytorch.org/docs/1.8.1/generated/torch.moveaxis.html) | [mindspore.ops.moveaxis](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.moveaxis.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.movedim](https://pytorch.org/docs/1.8.1/generated/torch.movedim.html) | [mindspore.ops.movedim](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.movedim.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.multinomial](https://pytorch.org/docs/1.8.1/generated/torch.multinomial.html) | [mindspore.ops.multinomial](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.multinomial.html) | [功能一致,参数默认值不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/multinomial.html) | -| [torch.multiply](https://pytorch.org/docs/1.8.1/generated/torch.multiply.html) | [mindspore.ops.multiply](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.multiply.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.mv](https://pytorch.org/docs/1.8.1/generated/torch.mv.html) | [mindspore.ops.mv](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.mv.html) | 功能一致,参数名不同| -| [torch.mvlgamma](https://pytorch.org/docs/1.8.1/generated/torch.mvlgamma.html)| [mindspore.ops.mvlgamma](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.mvlgamma.html)| [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/mvlgamma.html) | -| [torch.nan_to_num](https://pytorch.org/docs/1.8.1/generated/torch.nan_to_num.html) | [mindspore.ops.nan_to_num](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.nan_to_num.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nansum](https://pytorch.org/docs/1.8.1/generated/torch.nansum.html) | [mindspore.ops.nansum](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.nansum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.narrow](https://pytorch.org/docs/1.8.1/generated/torch.narrow.html) | [mindspore.ops.narrow](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.narrow.html) | 功能一致,参数名不同 | -| [torch.ne](https://pytorch.org/docs/1.8.1/generated/torch.ne.html)| [mindspore.ops.ne](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ne.html)| 功能一致,参数名不同 | -| [torch.neg](https://pytorch.org/docs/1.8.1/generated/torch.neg.html)| [mindspore.ops.neg](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.neg.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.negative](https://pytorch.org/docs/1.8.1/generated/torch.negative.html) | [mindspore.ops.negative](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.negative.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nextafter](https://pytorch.org/docs/1.8.1/generated/torch.nextafter.html) | [mindspore.ops.nextafter](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.nextafter.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nonzero](https://pytorch.org/docs/1.8.1/generated/torch.nonzero.html) | [mindspore.ops.nonzero](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.nonzero.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.normal](https://pytorch.org/docs/1.8.1/generated/torch.normal.html) | [mindspore.ops.normal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.normal.html) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/normal.html) | -| [torch.not_equal](https://pytorch.org/docs/1.8.1/generated/torch.not_equal.html) | [mindspore.ops.not_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.not_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.numel](https://pytorch.org/docs/1.8.1/generated/torch.numel.html) | [mindspore.ops.numel](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.numel.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.ones](https://pytorch.org/docs/1.8.1/generated/torch.ones.html) | [mindspore.ops.ones](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ones.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/ones.html) | -| [torch.ones_like](https://pytorch.org/docs/1.8.1/torch.html#torch.ones_like) | [mindspore.ops.ones_like](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ones_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.orgqr](https://pytorch.org/docs/1.8.1/generated/torch.orgqr.html) | [mindspore.ops.orgqr](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.orgqr.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.ormqr](https://pytorch.org/docs/1.8.1/generated/torch.ormqr.html) | [mindspore.ops.ormqr](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ormqr.html) | 功能一致,参数名不同 | -| [torch.outer](https://pytorch.org/docs/1.8.1/generated/torch.outer.html) | [mindspore.ops.outer](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.outer.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.poisson](https://pytorch.org/docs/1.8.1/generated/torch.poisson.html) | [mindspore.ops.random_poisson](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.random_poisson.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/poisson.html) | -| [torch.polar](https://pytorch.org/docs/1.8.1/generated/torch.polar.html) | [mindspore.ops.polar](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.polar.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.polygamma](https://pytorch.org/docs/1.8.1/generated/torch.polygamma.html) | [mindspore.ops.polygamma](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.polygamma.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/polygamma.html) | -| [torch.pow](https://pytorch.org/docs/1.8.1/generated/torch.pow.html#torch.pow) | [mindspore.ops.pow](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.pow.html#mindspore.ops.pow) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.prod](https://pytorch.org/docs/1.8.1/generated/torch.prod.html#torch.prod) | [mindspore.ops.prod](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.prod.html#mindspore.ops.prod) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/prod.html) | -| [torch.rad2deg](https://pytorch.org/docs/1.8.1/generated/torch.rad2deg.html) | [mindspore.ops.rad2deg](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.rad2deg.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/rad2deg.html) | -| [torch.rand](https://pytorch.org/docs/1.8.1/generated/torch.rand.html) | [mindspore.ops.rand](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.rand.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.rand_like](https://pytorch.org/docs/1.8.1/generated/torch.rand_like.html) | [mindspore.ops.rand_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.rand_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.randn](https://pytorch.org/docs/1.8.1/generated/torch.randn.html) | [mindspore.ops.randn](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.randn.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.randn_like](https://pytorch.org/docs/1.8.1/generated/torch.randn_like.html) | [mindspore.ops.randn_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.randn_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.randint](https://pytorch.org/docs/1.8.1/generated/torch.randint.html) | [mindspore.ops.randint](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.randint.html) | [功能一致,默认值不同](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/randint.html) | -| [torch.randint_like](https://pytorch.org/docs/1.8.1/generated/torch.randint_like.html) | [mindspore.ops.randint_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.randint_like.html) | [功能一致,默认值不同](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/randint_like.html) | -| [torch.randperm](https://pytorch.org/docs/1.8.1/generated/torch.randperm.html) | [mindspore.ops.randperm](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.randperm.html) | 功能一致,参数名不同 | -| [torch.range](https://pytorch.org/docs/1.8.1/generated/torch.range.html#torch.range) | [mindspore.ops.range](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.range.html) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/range.html) | -| [torch.ravel](https://pytorch.org/docs/1.8.1/generated/torch.ravel.html) | [mindspore.ops.ravel](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ravel.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.real](https://pytorch.org/docs/1.8.1/generated/torch.real.html) | [mindspore.ops.real](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.real.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.reciprocal](https://pytorch.org/docs/1.8.1/generated/torch.reciprocal.html) | [mindspore.ops.reciprocal](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.reciprocal.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.remainder](https://pytorch.org/docs/1.8.1/generated/torch.remainder.html) | [mindspore.ops.remainder](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.remainder.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.renorm](https://pytorch.org/docs/1.8.1/generated/torch.renorm.html) | [mindspore.ops.renorm](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.renorm.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/renorm.html) | -| [torch.repeat_interleave](https://pytorch.org/docs/1.8.1/generated/torch.repeat_interleave.html) | [mindspore.ops.repeat_interleave](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.repeat_interleave.html) | 功能一致,参数名不同| -| [torch.reshape](https://pytorch.org/docs/1.8.1/generated/torch.reshape.html#torch.reshape) | [mindspore.ops.reshape](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.reshape.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.roll](https://pytorch.org/docs/1.8.1/generated/torch.roll.html) | [mindspore.ops.roll](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.roll.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.rot90](https://pytorch.org/docs/1.8.1/generated/torch.rot90.html) | [mindspore.ops.rot90](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.rot90.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.round](https://pytorch.org/docs/1.8.1/generated/torch.round.html)| [mindspore.ops.round](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.round.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.row_stack](https://pytorch.org/docs/1.8.1/generated/torch.row_stack.html)| [mindspore.ops.row_stack](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.row_stack.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.rsqrt](https://pytorch.org/docs/1.8.1/generated/torch.rsqrt.html) | [mindspore.ops.rsqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.rsqrt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.searchsorted](https://pytorch.org/docs/1.8.1/generated/torch.searchsorted.html) | [mindspore.ops.searchsorted](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.searchsorted.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.scatter](https://pytorch.org/docs/1.8.1/generated/torch.scatter.html) | [mindspore.ops.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.scatter.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/scatter.html) | -| [torch.scatter_add](https://pytorch.org/docs/1.8.1/generated/torch.scatter_add.html) | [mindspore.ops.tensor_scatter_elements](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tensor_scatter_elements.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/scatter_add.html) | -| [torch.sgn](https://pytorch.org/docs/1.8.1/generated/torch.sgn.html) | [mindspore.ops.sgn](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sgn.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.sigmoid](https://pytorch.org/docs/1.8.1/generated/torch.sigmoid.html) | [mindspore.ops.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.sign](https://pytorch.org/docs/1.8.1/generated/torch.sign.html) | [mindspore.ops.sign](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sign.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.signbit](https://pytorch.org/docs/1.8.1/generated/torch.signbit.html) | [mindspore.ops.signbit](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.signbit.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.sin](https://pytorch.org/docs/1.8.1/generated/torch.sin.html)| [mindspore.ops.sin](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sin.html)| [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.sinc](https://pytorch.org/docs/1.8.1/generated/torch.sinc.html)| [mindspore.ops.sinc](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sinc.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.sinh](https://pytorch.org/docs/1.8.1/generated/torch.sinh.html)| [mindspore.ops.sinh](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sinh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.slogdet](https://pytorch.org/docs/1.8.1/generated/torch.slogdet.html) | [mindspore.ops.slogdet](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.slogdet.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.sort](https://pytorch.org/docs/1.8.1/generated/torch.sort.html) | [mindspore.ops.sort](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sort.html) | 功能一致,参数名不同 | -| [torch.split](https://pytorch.org/docs/1.8.1/generated/torch.split.html) | [mindspore.ops.split](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.split.html) | 功能一致,参数名不同 | -| [torch.stack](https://pytorch.org/docs/1.8.1/generated/torch.stack.html) | [mindspore.ops.stack](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.stack.html) | 功能一致,参数名不同 | -| [torch.squeeze](https://pytorch.org/docs/1.8.1/generated/torch.squeeze.html) | [mindspore.ops.squeeze](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.squeeze.html) | 功能一致,参数名不一致 | -| [torch.std](https://pytorch.org/docs/1.8.1/generated/torch.std.html#torch.std) | [mindspore.ops.std](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.std.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/std.html) | -| [torch.std_mean](https://pytorch.org/docs/1.8.1/generated/torch.std_mean.html#torch.std_mean) | [mindspore.ops.std_mean](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.std_mean.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/std_mean.html) | -| [torch.sqrt](https://pytorch.org/docs/1.8.1/generated/torch.sqrt.html) | [mindspore.ops.sqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sqrt.html) | 功能一致,参数名不同 | -| [torch.square](https://pytorch.org/docs/1.8.1/generated/torch.square.html)| [mindspore.ops.square](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.square.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.sub](https://pytorch.org/docs/1.8.1/generated/torch.sub.html#torch.sub) | [mindspore.ops.subtract](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.subtract.html) | 功能一致,参数名不同 | -| [torch.subtract](https://pytorch.org/docs/1.8.1/generated/torch.subtract.html#torch.subtract) | [mindspore.ops.subtract](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.subtract.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.sum](https://pytorch.org/docs/1.8.1/generated/torch.sum.html) | [mindspore.ops.sum](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.svd](https://pytorch.org/docs/1.8.1/generated/torch.svd.html) | [mindspore.ops.svd](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.svd.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/svd.html) | -| [torch.swapaxes](https://pytorch.org/docs/1.8.1/generated/torch.swapaxes.html) | [mindspore.ops.swapaxes](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.swapaxes.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.swapdims](https://pytorch.org/docs/1.8.1/generated/torch.swapdims.html) | [mindspore.ops.swapdims](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.swapdims.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.t](https://pytorch.org/docs/1.8.1/generated/torch.t.html) | [mindspore.ops.t](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.t.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.tan](https://pytorch.org/docs/1.8.1/generated/torch.tan.html)| [mindspore.ops.tan](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tan.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.tanh](https://pytorch.org/docs/1.8.1/generated/torch.tanh.html) | [mindspore.ops.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.tensor_split](https://pytorch.org/docs/1.8.1/generated/torch.tensor_split.html) | [mindspore.ops.tensor_split](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tensor_split.html) |功能一致,参数名不同| -| [torch.tile](https://pytorch.org/docs/1.8.1/generated/torch.tile.html) | [mindspore.ops.tile](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tile.html) | 功能一致,参数名不同| -| [torch.topk](https://pytorch.org/docs/1.8.1/generated/torch.topk.html#torch.topk) | [mindspore.ops.topk](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.topk.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.trace](https://pytorch.org/docs/1.8.1/generated/torch.trace.html) | [mindspore.ops.trace](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.trace.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.transpose](https://pytorch.org/docs/1.8.1/generated/torch.transpose.html) | [mindspore.ops.swapaxes](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.swapaxes.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.trapz](https://pytorch.org/docs/1.8.1/generated/torch.trapz.html) | [mindspore.ops.trapz](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.trapz.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.tril](https://pytorch.org/docs/1.8.1/generated/torch.tril.html) | [mindspore.ops.tril](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tril.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.tril_indices](https://pytorch.org/docs/1.8.1/generated/torch.tril_indices.html) | [mindspore.ops.tril_indices](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tril_indices.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.triu_indices](https://pytorch.org/docs/1.8.1/generated/torch.triu_indices.html) | [mindspore.ops.triu_indices](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.triu_indices.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.true_divide](https://pytorch.org/docs/1.8.1/generated/torch.true_divide.html#torch.true_divide) | [mindspore.ops.true_divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.true_divide.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.trunc](https://pytorch.org/docs/1.8.1/generated/torch.trunc.html)| [mindspore.ops.trunc](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.trunc.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.unbind](https://pytorch.org/docs/1.8.1/generated/torch.unbind.html) | [mindspore.ops.unbind](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.unbind.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.unique](https://pytorch.org/docs/1.8.1/generated/torch.unique.html#torch.unique) | [mindspore.ops.unique](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.unique.html#mindspore.ops.unique) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/unique.html) | -| [torch.unique_consecutive](https://pytorch.org/docs/1.8.1/generated/torch.unique_consecutive.html#torch.unique_consecutive) | [mindspore.ops.unique_consecutive](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.unique_consecutive.html#mindspore.ops.unique_consecutive) | 功能一致,参数名不同 | -| [torch.unsqueeze](https://pytorch.org/docs/1.8.1/generated/torch.unsqueeze.html)| [mindspore.ops.unsqueeze](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.unsqueeze.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.vander](https://pytorch.org/docs/1.8.1/generated/torch.vander.html) | [mindspore.ops.vander](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.vander.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.var](https://pytorch.org/docs/1.8.1/generated/torch.var.html#torch.var) | [mindspore.ops.var](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.var.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/var.html) | -| [torch.var_mean](https://pytorch.org/docs/1.8.1/generated/torch.var_mean.html#torch.var_mean) | [mindspore.ops.var_mean](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.var_mean.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/var_mean.html) | -| [torch.view_as_real](https://pytorch.org/docs/1.8.1/generated/torch.view_as_real.html) | [mindspore.ops.view_as_real](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.view_as_real.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.vstack](https://pytorch.org/docs/1.8.1/generated/torch.vstack.html) | [mindspore.ops.vstack](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.vstack.html) | 功能一致,参数名不同 | -| [torch.where](https://pytorch.org/docs/1.8.1/generated/torch.where.html) | [mindspore.ops.where](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.where.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.xlogy](https://pytorch.org/docs/1.8.1/generated/torch.xlogy.html) | [mindspore.ops.xlogy](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.xlogy.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.zeros](https://pytorch.org/docs/1.8.1/generated/torch.zeros.html) | [mindspore.ops.zeros](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.zeros.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/zeros.html)| -| [torch.zeros_like](https://pytorch.org/docs/1.8.1/torch.html#torch.zeros_like) | [mindspore.ops.zeros_like](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.zeros_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | - -| PyTorch 1.12 APIs | MindSpore APIs | 说明 | -| ------------- | ---------------- | ----------------- | -| [torch.hsplit](https://pytorch.org/docs/1.12/generated/torch.hsplit.html) | [mindspore.ops.hsplit](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hsplit.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.permute](https://pytorch.org/docs/1.12/generated/torch.permute.html) | [mindspore.ops.permute](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.permute.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.vsplit](https://pytorch.org/docs/1.12/generated/torch.vsplit.html) | [mindspore.ops.vsplit](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.vsplit.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| - -## torch.generator - -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | -| -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---- | -| [torch.get_rng_state](https://pytorch.org/docs/1.8.1/generated/torch.get_rng_state.html) | [mindspore.get_rng_state](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.get_rng_state.html) | 一致 | -| [torch.initial_seed](https://pytorch.org/docs/1.8.1/generated/torch.initial_seed.html) | [mindspore.initial_seed](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.initial_seed.html) | 一致 | -| [torch.manual_seed](https://pytorch.org/docs/1.8.1/generated/torch.manual_seed.html) | [mindspore.manual_seed](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.manual_seed.html) | 一致 | -| [torch.seed](https://pytorch.org/docs/1.8.1/generated/torch.seed.html) | [mindspore.seed](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.seed.html) | 一致 | -| [torch.set_rng_state](https://pytorch.org/docs/1.8.1/generated/torch.set_rng_state.html) | [mindspore.set_rng_state](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.set_rng_state.html) | 一致 | -| [torch.Generator](https://pytorch.org/docs/1.8.1/generated/torch.Generator.html) | [mindspore.Generator](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.Generator.html) | 一致 | - -## torch.distributions - -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | +| [torch.abs](https://pytorch.org/docs/2.1/generated/torch.abs.html) | [mindspore.mint.abs](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.abs.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.acos](https://pytorch.org/docs/2.1/generated/torch.acos.html) | [mindspore.mint.acos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.acos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.acosh](https://pytorch.org/docs/2.1/generated/torch.acosh.html)| [mindspore.mint.acosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.acosh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.add](https://pytorch.org/docs/2.1/generated/torch.add.html)| [mindspore.mint.add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.add.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.addbmm](https://pytorch.org/docs/2.1/generated/torch.addbmm.html)| [mindspore.mint.addbmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.addbmm.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.addmm](https://pytorch.org/docs/2.1/generated/torch.addmm.html)| [mindspore.mint.addmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.addmm.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.addmm](https://pytorch.org/docs/2.1/generated/torch.addmv.html)| [mindspore.mint.addmv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.addmv.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.all](https://pytorch.org/docs/2.1/generated/torch.all.html#torch.all) | [mindspore.mint.all](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.all.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.allclose](https://pytorch.org/docs/2.1/generated/torch.allclose.html)| [mindspore.mint.allclose](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.allclose.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.amax](https://pytorch.org/docs/2.1/generated/torch.amax.html)| [mindspore.mint.amax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.amax.html)|功能一致,参数不一致| +| [torch.amin](https://pytorch.org/docs/2.1/generated/torch.amin.html)| [mindspore.mint.amin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.amin.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.any](https://pytorch.org/docs/2.1/generated/torch.any.html#torch.any) | [mindspore.mint.any](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.any.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.arange](https://pytorch.org/docs/2.1/generated/torch.arange.html)| [mindspore.mint.arange](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arange.html)|功能一致,参数不一致| +| [torch.arccos](https://pytorch.org/docs/2.1/generated/torch.arccos.html) | [mindspore.mint.arccos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arccos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.arccosh](https://pytorch.org/docs/2.1/generated/torch.arccosh.html) | [mindspore.mint.arccosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arccosh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.arcsin](https://pytorch.org/docs/2.1/generated/torch.arcsin.html) | [mindspore.mint.arcsin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arcsin.html) | 功能一致,参数不一致| +| [torch.arcsinh](https://pytorch.org/docs/2.1/generated/torch.arcsinh.html) | [mindspore.mint.arcsinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arcsinh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.arctan](https://pytorch.org/docs/2.1/generated/torch.arctan.html) | [mindspore.mint.arctan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arctan.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.arctan2](https://pytorch.org/docs/2.1/generated/torch.arctan2.html)| [mindspore.mint.arctan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arctan2.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.arctanh](https://pytorch.org/docs/2.1/generated/torch.arctanh.html) | [mindspore.mint.arctanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.arctanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.argmax](https://pytorch.org/docs/2.1/generated/torch.argmax.html) | [mindspore.mint.argmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.argmax.html) |功能一致,参数不一致| +| [torch.argmin](https://pytorch.org/docs/2.1/generated/torch.argmin.html) | [mindspore.mint.argmin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.argmin.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.argsort](https://pytorch.org/docs/2.1/generated/torch.argsort.html)| [mindspore.mint.argsort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.argsort.html)|功能一致,参数不一致| +| [torch.asin](https://pytorch.org/docs/2.1/generated/torch.asin.html) | [mindspore.mint.asin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.asin.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.asinh](https://pytorch.org/docs/2.1/generated/torch.asinh.html)| [mindspore.mint.asinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.asinh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.atan](https://pytorch.org/docs/2.1/generated/torch.atan.html) | [mindspore.mint.atan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.atan.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.atan2](https://pytorch.org/docs/2.1/generated/torch.atan2.html) | [mindspore.mint.atan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.atan2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.atanh](https://pytorch.org/docs/2.1/generated/torch.atanh.html)| [mindspore.mint.atanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.atanh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.baddbmm](https://pytorch.org/docs/1.8.1/generated/torch.baddbmm.html) | [mindspore.mint.baddbmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.baddbmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.bernoulli](https://pytorch.org/docs/2.1/generated/torch.bernoulli.html)| [mindspore.mint.bernoulli](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bernoulli.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.bincount](https://pytorch.org/docs/2.1/generated/torch.bincount.html)| [mindspore.mint.bincount](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bincount.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.bitwise_and](https://pytorch.org/docs/2.1/generated/torch.bitwise_and.html) | [mindspore.mint.bitwise_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bitwise_and.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.bitwise_or](https://pytorch.org/docs/2.1/generated/torch.bitwise_or.html) | [mindspore.mint.bitwise_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bitwise_or.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.bitwise_xor](https://pytorch.org/docs/2.1/generated/torch.bitwise_xor.html) | [mindspore.mint.bitwise_xor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bitwise_xor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.bmm](https://pytorch.org/docs/2.1/generated/torch.bmm.html) | [mindspore.mint.bmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.bmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.broadcast_to](https://pytorch.org/docs/2.1/generated/torch.broadcast_to.html) | [mindspore.mint.broadcast_to](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.broadcast_to.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.cat](https://pytorch.org/docs/2.1/generated/torch.cat.html) | [mindspore.mint.cat](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cat.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.cdist](https://pytorch.org/docs/2.1/generated/torch.cdist.html)| [mindspore.mint.cdist](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cdist.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.chunk](https://pytorch.org/docs/2.1/generated/torch.chunk.html)| [mindspore.mint.chunk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.chunk.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.ceil](https://pytorch.org/docs/2.1/generated/torch.ceil.html) | [mindspore.mint.ceil](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ceil.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.clamp](https://pytorch.org/docs/2.1/generated/torch.clamp.html) | [mindspore.mint.clamp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.clamp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.clone](https://pytorch.org/docs/2.1/generated/torch.clone.html)| [mindspore.mint.clone](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.clone.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.concat](https://pytorch.org/docs/2.1/generated/torch.concat.html)| [mindspore.mint.concat](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.concat.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.count_nonzero](https://pytorch.org/docs/2.1/generated/torch.count_nonzero.html)| [mindspore.mint.count_nonzero](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.count_nonzero.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.cos](https://pytorch.org/docs/2.1/generated/torch.cos.html) | [mindspore.mint.cos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.cosh](https://pytorch.org/docs/2.1/generated/torch.cosh.html) | [mindspore.mint.cosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cosh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.cross](https://pytorch.org/docs/2.1/generated/torch.cross.html) | [mindspore.mint.cross](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cross.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.cummax](https://pytorch.org/docs/2.1/generated/torch.cummax.html) | [mindspore.mint.cummax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cummax.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.cummin](https://pytorch.org/docs/2.1/generated/torch.cummin.html) | [mindspore.mint.cummin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cummin.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.cumprod](https://pytorch.org/docs/2.1/generated/torch.cumprod.html)| [mindspore.mint.cumprod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cumprod.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.cumsum](https://pytorch.org/docs/2.1/generated/torch.cumsum.html) | [mindspore.mint.cumsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.cumsum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.diff](https://pytorch.org/docs/2.1/generated/torch.diff.html)| [mindspore.mint.diff](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.diff.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.div](https://pytorch.org/docs/2.1/generated/torch.div.html) | [mindspore.mint.div](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.div.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.divide](https://pytorch.org/docs/2.1/generated/torch.divide.html) | [mindspore.mint.divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.divide.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.dot](https://pytorch.org/docs/2.1/generated/torch.dot.html)| [mindspore.mint.dot](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.dot.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.einsum](https://pytorch.org/docs/2.1/generated/torch.einsum.html)| [mindspore.mint.einsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.einsum.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.empty](https://pytorch.org/docs/2.1/generated/torch.empty.html)| [mindspore.mint.empty](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.empty.html)|功能一致,参数不一致| +| [torch.empty_like](https://pytorch.org/docs/2.1/generated/torch.empty_like.html)| [mindspore.mint.empty_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.empty_like.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.equal](https://pytorch.org/docs/2.1/generated/torch.equal.html)| [mindspore.mint.equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.equal.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.eq](https://pytorch.org/docs/2.1/generated/torch.eq.html) | [mindspore.mint.eq](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.eq.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.erf](https://pytorch.org/docs/2.1/generated/torch.erf.html) | [mindspore.mint.erf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.erf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.erfc](https://pytorch.org/docs/2.1/generated/torch.erfc.html) | [mindspore.mint.erfc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.erfc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.erfinv](https://pytorch.org/docs/2.1/generated/torch.erfinv.html) | [mindspore.mint.erfinv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.erfinv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.exp](https://pytorch.org/docs/2.1/generated/torch.exp.html) | [mindspore.mint.exp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.exp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.exp2](https://pytorch.org/docs/2.1/generated/torch.exp2.html) | [mindspore.mint.exp2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.exp2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.expm1](https://pytorch.org/docs/2.1/generated/torch.expm1.html) | [mindspore.mint.expm1](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.expm1.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.eye](https://pytorch.org/docs/2.1/generated/torch.eye.html) | [mindspore.mint.eye](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.eye.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.float_power](https://pytorch.org/docs/2.1/generated/torch.float_power.html)| [mindspore.mint.float_power](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.fix.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.flatten](https://pytorch.org/docs/2.1/generated/torch.flatten.html) | [mindspore.mint.flatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.flatten.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.flip](https://pytorch.org/docs/2.1/generated/torch.flip.html) | [mindspore.mint.flip](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.flip.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.floor](https://pytorch.org/docs/2.1/generated/torch.floor.html) | [mindspore.mint.floor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.floor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.fmod](https://pytorch.org/docs/2.1/generated/torch.fmod.html)| [mindspore.mint.fmod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.fmod.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.frac](https://pytorch.org/docs/2.1/generated/torch.frac.html)| [mindspore.mint.frac](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.frac.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.full](https://pytorch.org/docs/2.1/generated/torch.full.html) | [mindspore.mint.full](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.full.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.full_like](https://pytorch.org/docs/2.1/generated/torch.full_like.html)| [mindspore.mint.full_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.full_like.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.gather](https://pytorch.org/docs/2.1/generated/torch.gather.html)| [mindspore.mint.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.gather.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.greater](https://pytorch.org/docs/2.1/generated/torch.greater.html) | [mindspore.mint.greater](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.greater.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.greater_equal](https://pytorch.org/docs/2.1/generated/torch.greater_equal.html) | [mindspore.mint.greater_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.greater_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.gt](https://pytorch.org/docs/2.1/generated/torch.gt.html) | [mindspore.mint.gt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.gt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.histc](https://pytorch.org/docs/2.1/generated/torch.histc.html)| [mindspore.mint.histc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.histc.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.index_select](https://pytorch.org/docs/2.1/generated/torch.index_select.html) | [mindspore.mint.index_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.index_select.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.inverse](https://pytorch.org/docs/2.1/generated/torch.inverse.html) | [mindspore.mint.inverse](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.inverse.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.isclose](https://pytorch.org/docs/2.1/generated/torch.isclose.html) | [mindspore.mint.isclose](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isclose.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.isfinite](https://pytorch.org/docs/2.1/generated/torch.isfinite.html) | [mindspore.mint.isfinite](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isfinite.html) |功能一致,参数不一致| +| [torch.isinf](https://pytorch.org/docs/2.1/generated/torch.isinf.html)| [mindspore.mint.isinf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isinf.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.isneginf](https://pytorch.org/docs/2.1/generated/torch.isneginf.html)| [mindspore.mint.isneginf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.isneginf.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.le](https://pytorch.org/docs/2.1/generated/torch.le.html) | [mindspore.mint.le](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.le.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.lerp](https://pytorch.org/docs/2.1/generated/torch.lerp.html)| [mindspore.mint.lerp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.lerp.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.less](https://pytorch.org/docs/2.1/generated/torch.less.html) | [mindspore.mint.less](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.less.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.less_equal](https://pytorch.org/docs/2.1/generated/torch.less_equal.html) | [mindspore.mint.less_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.less_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.linspace](https://pytorch.org/docs/2.1/generated/torch.linspace.html) | [mindspore.mint.linspace](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.linspace.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.log](https://pytorch.org/docs/2.1/generated/torch.log.html) | [mindspore.mint.log](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.log2](https://pytorch.org/docs/2.1/generated/torch.log2.html)| [mindspore.mint.log2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log2.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.log10](https://pytorch.org/docs/2.1/generated/torch.log10.html)| [mindspore.mint.log10](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log10.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.logaddexp](https://pytorch.org/docs/2.1/generated/torch.logaddexp.html)| [mindspore.mint.logaddexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logaddexp.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.logsumexp](https://pytorch.org/docs/2.1/generated/torch.logsumexp.html)| [mindspore.mint.logsumexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logsumexp.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.log1p](https://pytorch.org/docs/2.1/generated/torch.log1p.html#torch.log1p) | [mindspore.mint.log1p](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.log1p.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.logical_and](https://pytorch.org/docs/2.1/generated/torch.logical_and.html) | [mindspore.mint.logical_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_and.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.logical_not](https://pytorch.org/docs/2.1/generated/torch.logical_not.html) | [mindspore.mint.logical_not](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_not.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.logical_or](https://pytorch.org/docs/2.1/generated/torch.logical_or.html) | [mindspore.mint.logical_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_or.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.logical_xor](https://pytorch.org/docs/2.1/generated/torch.logical_xor.html) | [mindspore.mint.logical_xor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.logical_xor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.lt](https://pytorch.org/docs/2.1/generated/torch.lt.html) | [mindspore.mint.lt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.lt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.masked_select](https://pytorch.org/docs/2.1/generated/torch.masked_select.html) | [mindspore.mint.masked_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.masked_select.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.matmul](https://pytorch.org/docs/2.1/generated/torch.matmul.html#torch.matmul) | [mindspore.mint.matmul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.matmul.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.max](https://pytorch.org/docs/2.1/generated/torch.max.html) | [mindspore.mint.max](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.max.html) | 功能一致,参数不一致| +| [torch.maximum](https://pytorch.org/docs/2.1/generated/torch.maximum.html) | [mindspore.mint.maximum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.maximum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.mean](https://pytorch.org/docs/2.1/generated/torch.mean.html) | [mindspore.mint.mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mean.html) |功能一致,参数不一致 | +| [torch.median](https://pytorch.org/docs/2.1/generated/torch.median.html) | [mindspore.mint.median](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.median.html) |功能一致,参数不一致| +| [torch.meshgrid](https://pytorch.org/docs/2.1/generated/torch.meshgrid.html)| [mindspore.mint.meshgrid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.meshgrid.html)|功能一致,参数不一致| +| [torch.mul](https://pytorch.org/docs/2.1/generated/torch.mul.html#torch.mul) | [mindspore.mint.mul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mul.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.min](https://pytorch.org/docs/2.1/generated/torch.min.html) | [mindspore.mint.min](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.min.html) | 功能一致,参数不一致 | [mindspore.mint.minimum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.minimum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.mm](https://pytorch.org/docs/2.1/generated/torch.mm.html) | [mindspore.mint.mm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.multinomial](https://pytorch.org/docs/2.1/generated/torch.multinomial.html) | [mindspore.mint.multinomial](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.multinomial.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.mv](https://pytorch.org/docs/2.1/generated/torch.mv.html) | [mindspore.mint.mv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.mv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nansum](https://pytorch.org/docs/2.1/generated/torch.nansum.html) | [mindspore.mint.nansum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nansum.html) | 功能一致,参数不一致| +| [torch.nan_to_num](https://pytorch.org/docs/2.1/generated/torch.nan_to_num.html) | [mindspore.mint.nan_to_num](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nan_to_num.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.narrow](https://pytorch.org/docs/2.1/generated/torch.narrow.html) | [mindspore.mint.narrow](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.narrow.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.ne](https://pytorch.org/docs/2.1/generated/torch.ne.html)| [mindspore.mint.ne](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ne.html)| [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.neg](https://pytorch.org/docs/2.1/generated/torch.neg.html)| [mindspore.mint.neg](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.neg.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.negative](https://pytorch.org/docs/2.1/generated/torch.negative.html) | [mindspore.mint.negative](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.negative.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nonzero](https://pytorch.org/docs/2.1/generated/torch.nonzero.html) | [mindspore.mint.nonzero](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nonzero.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.normal](https://pytorch.org/docs/2.1/generated/torch.normal.html) | [mindspore.mint.normal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.normal.html) |功能一致,参数不一致| +| [torch.norm](https://pytorch.org/docs/2.1/generated/torch.norm.html) | [mindspore.mint.norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.norm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.ones](https://pytorch.org/docs/2.1/generated/torch.ones.html) | [mindspore.mint.ones](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ones.html) |功能一致,参数不一致| +| [torch.ones_like](https://pytorch.org/docs/2.1/torch.html#torch.ones_like) | [mindspore.mint.ones_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ones_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.outer](https://pytorch.org/docs/2.1/generated/torch.outer.html) | [mindspore.mint.outer](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.outer.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.permute](https://pytorch.org/docs/2.1/generated/torch.permute.html) | [mindspore.mint.permute](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.permute.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.polar](https://pytorch.org/docs/2.1/generated/torch.polar.html) | [mindspore.mint.polar](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.polar.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.pow](https://pytorch.org/docs/2.1/generated/torch.pow.html#torch.pow) | [mindspore.mint.pow](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.pow.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.prod](https://pytorch.org/docs/2.1/generated/torch.prod.html#torch.prod) | [mindspore.mint.prod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.prod.html) | 功能一致,参数不一致 | +| [torch.rand](https://pytorch.org/docs/2.1/generated/torch.rand.html) | [mindspore.mint.rand](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.rand.html) | 功能一致,参数不一致 | +| [torch.rand_like](https://pytorch.org/docs/2.1/generated/torch.rand_like.html) | [mindspore.mint.rand_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.rand_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.randint](https://pytorch.org/docs/2.1/generated/torch.randint.html) | [mindspore.mint.randint](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randint.html) | 功能一致,参数不一致| +| [torch.randint_like](https://pytorch.org/docs/2.1/generated/torch.randint_like.html) | [mindspore.mint.randint_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randint_like.html) | 功能一致,参数不一致 | +| [torch.randn](https://pytorch.org/docs/2.1/generated/torch.randn.html) | [mindspore.mint.randn](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randn.html) |功能一致,参数不一致 | +| [torch.randn_like](https://pytorch.org/docs/2.1/generated/torch.randn_like.html) | [mindspore.mint.randn_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randn_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.randperm](https://pytorch.org/docs/2.1/generated/torch.randperm.html) | [mindspore.mint.randperm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.randperm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.ravel](https://pytorch.org/docs/2.1/generated/torch.ravel.html) | [mindspore.mint.ravel](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.ravel.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.reciprocal](https://pytorch.org/docs/2.1/generated/torch.reciprocal.html) | [mindspore.mint.reciprocal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.reciprocal.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.remainder](https://pytorch.org/docs/2.1/generated/torch.remainder.html) | [mindspore.mint.remainder](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.remainder.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.repeat_interleave](https://pytorch.org/docs/2.1/generated/torch.repeat_interleave.html) | [mindspore.mint.repeat_interleave](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.repeat_interleave.html) | 功能一致,参数不一致 | +| [torch.roll](https://pytorch.org/docs/2.1/generated/torch.roll.html) | [mindspore.mint.roll](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.roll.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.round](https://pytorch.org/docs/2.1/generated/torch.round.html)| [mindspore.mint.round](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.round.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.rsqrt](https://pytorch.org/docs/2.1/generated/torch.rsqrt.html) | [mindspore.mint.rsqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.rsqrt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.scatter](https://pytorch.org/docs/2.1/generated/torch.scatter.html) | [mindspore.mint.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.scatter.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.scatter_add](https://pytorch.org/docs/2.1/generated/torch.scatter_add.html) | [mindspore.mint.scatter_add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.scatter_add.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.searchsorted](https://pytorch.org/docs/2.1/generated/torch.searchsorted.html) | [mindspore.mint.searchsorted](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.searchsorted.html) | 功能一致,参数不一致| +| [torch.select](https://pytorch.org/docs/2.1/generated/torch.select.html) | [mindspore.mint.select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.select.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.sigmoid](https://pytorch.org/docs/2.1/generated/torch.sigmoid.html) | [mindspore.mint.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.sign](https://pytorch.org/docs/2.1/generated/torch.sign.html) | [mindspore.mint.sign](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sign.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.sin](https://pytorch.org/docs/2.1/generated/torch.sin.html)| [mindspore.mint.sin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sin.html)| [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.sinc](https://pytorch.org/docs/2.1/generated/torch.sinc.html)| [mindspore.mint.sinc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sinc.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.sinh](https://pytorch.org/docs/2.1/generated/torch.sinh.html)| [mindspore.mint.sinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sinh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.sort](https://pytorch.org/docs/2.1/generated/torch.sort.html) | [mindspore.mint.sort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sort.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.split](https://pytorch.org/docs/2.1/generated/torch.split.html) | [mindspore.mint.split](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.split.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.sqrt](https://pytorch.org/docs/2.1/generated/torch.sqrt.html) | [mindspore.mint.sqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sqrt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.square](https://pytorch.org/docs/2.1/generated/torch.square.html)| [mindspore.mint.square](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.square.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.squeeze](https://pytorch.org/docs/2.1/generated/torch.squeeze.html) | [mindspore.mint.squeeze](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.squeeze.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.stack](https://pytorch.org/docs/2.1/generated/torch.stack.html) | [mindspore.mint.stack](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.stack.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.std](https://pytorch.org/docs/2.1/generated/torch.std.html) | [mindspore.mint.std](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.std.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.std_mean](https://pytorch.org/docs/2.1/generated/torch.std_mean.html) | [mindspore.mint.std_mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.std_mean.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.sub](https://pytorch.org/docs/2.1/generated/torch.sub.html#torch.sub) | [mindspore.mint.sub](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sub.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.sum](https://pytorch.org/docs/2.1/generated/torch.sum.html) | [mindspore.mint.sum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.sum.html) | 功能一致,参数不一致 | +| [torch.swapaxes](https://pytorch.org/docs/2.1/generated/torch.swapaxes.html) | [mindspore.mint.swapaxes](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.swapaxes.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.t](https://pytorch.org/docs/2.1/generated/torch.t.html) | [mindspore.mint.t](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.t.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.tan](https://pytorch.org/docs/2.1/generated/torch.tan.html)| [mindspore.mint.tan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tan.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.tanh](https://pytorch.org/docs/2.1/generated/torch.tanh.html) | [mindspore.mint.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.tile](https://pytorch.org/docs/2.1/generated/torch.tile.html) | [mindspore.mint.tile](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tile.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.topk](https://pytorch.org/docs/2.1/generated/torch.topk.html#torch.topk) | [mindspore.mint.topk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.topk.html) | 功能一致,参数不一致| +| [torch.trace](https://pytorch.org/docs/2.1/generated/torch.trace.html) | [mindspore.mint.trace](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.trace.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.transpose](https://pytorch.org/docs/2.1/generated/torch.transpose.html) | [mindspore.mint.transpose](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.transpose.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.tril](https://pytorch.org/docs/2.1/generated/torch.tril.html) | [mindspore.mint.tril](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.tril.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.triu](https://pytorch.org/docs/2.1/generated/torch.triu.html) | [mindspore.mint.triu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.triu.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.trunc](https://pytorch.org/docs/2.1/generated/torch.trunc.html)| [mindspore.mint.trunc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.trunc.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.unbind](https://pytorch.org/docs/2.1/generated/torch.unbind.html) | [mindspore.mint.unbind](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.unbind.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.unique](https://pytorch.org/docs/2.1/generated/torch.unique.html#torch.unique) | [mindspore.mint.unique](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.unique.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.unique_consecutive](https://pytorch.org/docs/2.1/generated/torch.unique_consecutive.html) | [mindspore.mint.unique_consecutive](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.unique_consecutive.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.var](https://pytorch.org/docs/2.1/generated/torch.var.html) | [mindspore.mint.var](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.var.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.var_mean](https://pytorch.org/docs/2.1/generated/torch.var_mean.html) | [mindspore.mint.var_mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.var_mean.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.where](https://pytorch.org/docs/2.1/generated/torch.where.html) | [mindspore.mint.where](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.where.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.xlogy](https://pytorch.org/docs/2.1/generated/torch.xlogy.html) | [mindspore.mint.xlogy](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.xlogy.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.zeros](https://pytorch.org/docs/2.1/generated/torch.zeros.html) | [mindspore.mint.zeros](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.zeros.html) | 功能一致,参数不一致| +| [torch.zeros_like](https://pytorch.org/docs/2.1/generated/torch.zeros_like.html#torch-zeros-like) | [mindspore.mint.zeros_like](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.zeros_like.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | + +## torch.linalg + +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---- | -| [torch.distributions.laplace.Laplace](https://pytorch.org/docs/1.8.1/distributions.html#torch.distributions.laplace.Laplace) | [mindspore.ops.standard_laplace](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.standard_laplace.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/standard_laplace.html) | +| [torch.linalg.inv](https://pytorch.org/docs/2.1/generated/torch.linalg.inv.html) | [mindspore.mint.linalg.inv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.linalg.inv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.linalg.matrix_norm](https://pytorch.org/docs/2.1/generated/torch.linalg.matrix_norm.html) | [mindspore.mint.linalg.matrix_norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.linalg.matrix_norm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.linalg.norm](https://pytorch.org/docs/2.1/generated/torch.linalg.norm.html) | [mindspore.mint.linalg.norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.linalg.norm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.linalg.vector_norm](https://pytorch.org/docs/2.1/generated/torch.linalg.vector_norm.html) | [mindspore.mint.linalg.vector_norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.linalg.vector_norm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| ## torch.distributed -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | | ---------------------------------------------------------------------------------------------------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------| -| [torch.distributed.all_gather](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.all_gather) | [mindspore.communication.comm_func.all_gather_into_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.all_gather_into_tensor.html#mindspore.communication.comm_func.all_gather_into_tensor) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/all_gather.html) | -| [torch.distributed.all_reduce](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.all_reduce) | [mindspore.communication.comm_func.all_reduce](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.all_reduce.html#mindspore.communication.comm_func.all_reduce) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/all_reduce.html) | -| [torch.distributed.scatter](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.scatter) | [mindspore.communication.comm_func.scatter_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.scatter_tensor.html#mindspore.communication.comm_func.scatter_tensor) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/distributed.scatter.html) | -| [torch.distributed.gather](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.gather) | [mindspore.communication.comm_func.gather_into_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.gather_into_tensor.html#mindspore.communication.comm_func.gather_into_tensor) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/distributed.gather.html) | -| [torch.distributed.barrier](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.barrier) | [mindspore.communication.comm_func.barrier](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.barrier.html#mindspore.communication.comm_func.barrier) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/distributed.barrier.html) | -| [torch.distributed.broadcast](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.broadcast) | [mindspore.communication.comm_func.broadcast](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.broadcast.html#mindspore.communication.comm_func.broadcast) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/distributed.broadcast.html) | -| [torch.distributed.get_rank](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.get_rank) | [mindspore.communication.get_rank](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore.communication.html#mindspore.communication.get_rank) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/get_rank.html) | -| [torch.distributed.init_process_group](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.init_process_group) | [mindspore.communication.init](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore.communication.html#mindspore.communication.init) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/init.html) | -| [torch.distributed.new_group](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.new_group) | [mindspore.communication.create_group](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore.communication.html#mindspore.communication.create_group) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/create_group.html) | -| [torch.distributed.reduce_scatter](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.reduce_scatter) | [mindspore.communication.comm_func.reduce_scatter_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.reduce_scatter_tensor.html#mindspore.communication.comm_func.reduce_scatter_tensor) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/reduce_scatter_tensor.html) | -| [torch.distributed.reduce](https://pytorch.org/docs/1.8.1/distributed.html#torch.distributed.reduce) | [mindspore.communication.comm_func.reduce](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.reduce.html#mindspore.communication.comm_func.reduce) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/reduce.html) | - -| PyTorch 2.0.0 APIs | MindSpore APIs | 说明 | -| ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| [torch.distributed.all_to_all_single](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.all_to_all_single) | [mindspore.communication.comm_func.all_to_all_single_with_output_shape](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.all_to_all_single_with_output_shape.html#mindspore.communication.comm_func.all_to_all_single_with_output_shape) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/all_to_all_single_with_output_shape.html) | -| [torch.distributed.all_to_all](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.all_to_all) | [mindspore.communication.comm_func.all_to_all_with_output_shape](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.all_to_all_with_output_shape.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/all_to_all_with_output_shape.html) | -| [torch.distributed.batch_isend_irecv](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.batch_isend_irecv) | [mindspore.communication.comm_func.batch_isend_irecv](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.batch_isend_irecv.html#mindspore.communication.comm_func.batch_isend_irecv) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.distributed.P2POp](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.P2POp) | [mindspore.communication.comm_func.P2POp](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.P2POp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.distributed.isend](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.isend) | [mindspore.communication.comm_func.isend](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.isend.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.distributed.irecv](https://pytorch.org/docs/2.0/distributed.html#torch.distributed.irecv) | [mindspore.communication.comm_func.irecv](https://www.mindspore.cn/docs/zh-CN/master/api_python/communication/mindspore.communication.comm_func.irecv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.P2POp](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.P2POp) | [mindspore.mint.distributed.P2POp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.P2POp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.all_gather](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_gather) | [mindspore.mint.distributed.all_gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_gather.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.all_gather_into_tensor](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_gather_into_tensor) | [mindspore.mint.distributed.all_gather_into_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_gather_into_tensor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.all_gather_object](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_gather_object) | [mindspore.mint.distributed.all_gather_object](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_gather_object.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.all_reduce](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_reduce) | [mindspore.mint.distributed.all_reduce](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_reduce.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.all_to_all_single](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_to_all_single) | [mindspore.mint.distributed.all_to_all_single](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_to_all_single.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.all_to_all](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.all_to_all) | [mindspore.mint.distributed.all_to_all](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.all_to_all.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.barrier](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.barrier) | [mindspore.mint.distributed.barrier](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.barrier.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.batch_isend_irecv](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.batch_isend_irecv) | [mindspore.mint.distributed.batch_isend_irecv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.batch_isend_irecv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.broadcast](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.broadcast) | [mindspore.mint.distributed.broadcast](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.broadcast.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.distributed.broadcast_object_list](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.broadcast_object_list) | [mindspore.mint.distributed.distributed.broadcast_object_list](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.broadcast_object_list.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| []() | [mindspore.mint.distributed.destroy_process_group](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.destroy_process_group.html) | MS独有| +| [torch.distributed.gather](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.gather) | [mindspore.mint.distributed.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.gather.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.gather_object](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.gather_object) | [mindspore.mint.distributed.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.gather_object.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.get_backend](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_backend) | [mindspore.mint.distributed.get_backend](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_backend.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.get_global_rank](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_global_rank) | [mindspore.mint.distributed.get_global_rank](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_global_rank.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.get_group_rank](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_group_rank) | [mindspore.mint.distributed.get_group_rank](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_group_rank.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.get_process_group_ranks](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_process_group_ranks) | [mindspore.mint.distributed.get_process_group_ranks](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_process_group_ranks.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.get_rank](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_rank) | [mindspore.mint.distributed.get_rank](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_rank.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.get_world_size](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.get_world_size) | [mindspore.mint.distributed.get_world_size](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.get_world_size.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.init_process_group](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.init_process_group) | [mindspore.mint.distributed.init_process_group](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.init_process_group.html) |功能一致,参数不一致 | +| [torch.distributed.irecv](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.irecv) | [mindspore.mint.distributed.irecv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.irecv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.isend](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.isend) | [mindspore.mint.distributed.isend](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.isend.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.distributed.new_group](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.new_group) | [mindspore.mint.distributed.new_group](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.new_group.html) | 功能一致,参数不一致 | +| [torch.distributed.recv](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.recv) | [mindspore.mint.distributed.recv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.recv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.reduce](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.reduce) | [mindspore.mint.distributed.reduce](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.reduce.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.reduce_scatter](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.reduce_scatter) | [mindspore.mint.distributed.reduce_scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.reduce_scatter.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.reduce_scatter_tensor](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.reduce_scatter_tensor) | [mindspore.mint.distributed.reduce_scatter_tensor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.reduce_scatter_tensor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.scatter](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.scatter) | [mindspore.mint.distributed.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.scatter.html) | 功能一致,参数不一致 | +| [torch.distributed.scatter_object_list](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.scatter_object_list) | [mindspore.mint.distributed.scatter_object_list](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.scatter_object_list.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.distributed.send](https://pytorch.org/docs/2.1/distributed.html#torch.distributed.send) | [mindspore.mint.distributed.send](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.distributed.send.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| ## torch.nn -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.nn.AdaptiveAvgPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveAvgPool1d.html) | [mindspore.nn.AdaptiveAvgPool1d](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdaptiveAvgPool1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AdaptiveAvgPool1d.html) | -| [torch.nn.AdaptiveAvgPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveAvgPool2d.html) | [mindspore.nn.AdaptiveAvgPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdaptiveAvgPool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.AdaptiveAvgPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveAvgPool3d.html) | [mindspore.nn.AdaptiveAvgPool3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdaptiveAvgPool3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.AdaptiveMaxPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveMaxPool1d.html) | [mindspore.nn.AdaptiveMaxPool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdaptiveMaxPool1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AdaptiveMaxPool1d.html) | -| [torch.nn.AdaptiveMaxPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveMaxPool2d.html) | [mindspore.nn.AdaptiveMaxPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdaptiveMaxPool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.AdaptiveMaxPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AdaptiveMaxPool3d.html) | [mindspore.nn.AdaptiveMaxPool3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdaptiveMaxPool3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.AvgPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AvgPool1d.html) | [mindspore.nn.AvgPool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AvgPool1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AvgPool1d.html) | -| [torch.nn.AvgPool2d](https://PyTorch.org/docs/1.8.1/generated/torch.nn.AvgPool2d.html) | [mindspore.nn.AvgPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AvgPool2d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AvgPool2d.html) | -| [torch.nn.AvgPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.AvgPool3d.html) | [mindspore.nn.AvgPool3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AvgPool3d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AvgPool3d.html)| -| [torch.nn.BCELoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.BCELoss.html) | [mindspore.nn.BCELoss](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.BCELoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.BCEWithLogitsLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.BCEWithLogitsLoss.html) | [mindspore.nn.BCEWithLogitsLoss](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.BCEWithLogitsLoss.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/BCEWithLogitsLoss.html) | -| [torch.nn.BatchNorm1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.BatchNorm1d.html) | [mindspore.nn.BatchNorm1d](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.BatchNorm1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/BatchNorm1d.html) | -| [torch.nn.BatchNorm2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.BatchNorm2d.html) | [mindspore.nn.BatchNorm2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.BatchNorm2d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/BatchNorm2d.html) | -| [torch.nn.BatchNorm3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.BatchNorm3d.html) | [mindspore.nn.BatchNorm3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.BatchNorm3d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/BatchNorm3d.html) | -| [torch.nn.Bilinear](https://pytorch.org/docs/1.8.1/generated/torch.nn.Bilinear.html) | [mindspore.nn.BiDense](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.BiDense.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/BiDense.html) | -| [torch.nn.CeLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.CELU.html) | [mindspore.nn.CELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.CELU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ChannelShuffle](https://pytorch.org/docs/1.8.1/generated/torch.nn.ChannelShuffle.html) | [mindspore.nn.ChannelShuffle](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ChannelShuffle.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.CTCLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.CTCLoss.html) | [mindspore.nn.CTCLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.CTCLoss.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ConstantPad1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConstantPad1d.html) | [mindspore.nn.ConstantPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ConstantPad1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ConstantPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConstantPad2d.html) | [mindspore.nn.ConstantPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ConstantPad2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ConstantPad3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConstantPad3d.html) | [mindspore.nn.ConstantPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ConstantPad3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Conv1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Conv1d.html) | [mindspore.nn.Conv1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Conv1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Conv1d.html) | -| [torch.nn.Conv2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Conv2d.html) | [mindspore.nn.Conv2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Conv2d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Conv2d.html) | -| [torch.nn.Conv3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Conv3d.html) | [mindspore.nn.Conv3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Conv3d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Conv3d.html) | -| [torch.nn.ConvTranspose1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConvTranspose1d.html) | [mindspore.nn.Conv1dTranspose](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Conv1dTranspose.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Conv1dTranspose.html) | -| [torch.nn.ConvTranspose2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConvTranspose2d.html) | [mindspore.nn.Conv2dTranspose](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Conv2dTranspose.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Conv2dTranspose.html) | -| [torch.nn.ConvTranspose3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ConvTranspose3d.html) | [mindspore.nn.Conv3dTranspose](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Conv3dTranspose.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Conv3dTranspose.html) | -| [torch.nn.CosineEmbeddingLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.CosineEmbeddingLoss.html) | [mindspore.nn.CosineEmbeddingLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.CosineEmbeddingLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.CrossEntropyLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.CrossEntropyLoss.html) | [mindspore.nn.CrossEntropyLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.CrossEntropyLoss.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/CrossEntropyLoss.html) | -| [torch.nn.Dropout](https://pytorch.org/docs/1.8.1/generated/torch.nn.Dropout.html) | [mindspore.nn.Dropout](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Dropout.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Dropout.html) | -| [torch.nn.Dropout2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Dropout2d.html#torch.nn.Dropout2d) | [mindspore.nn.Dropout2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Dropout2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Dropout3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Dropout3d.html#torch.nn.Dropout3d) | [mindspore.nn.Dropout3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Dropout3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.ELU](https://pytorch.org/docs/1.8.1/generated/torch.nn.ELU.html) | [mindspore.nn.ELU](https://www.mindspore.cn/docs/zh-CN/master//api_python/nn/mindspore.nn.ELU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Flatten](https://pytorch.org/docs/1.8.1/generated/torch.nn.Flatten.html) | [mindspore.nn.Flatten](https://www.mindspore.cn/docs/zh-CN/master//api_python/nn/mindspore.nn.Flatten.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.GaussianNLLLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.GaussianNLLLoss.html) | [mindspore.nn.GaussianNLLLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.GaussianNLLLoss.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/GaussianNLLLoss.html) | -| [torch.nn.GELU](https://pytorch.org/docs/1.8.1/generated/torch.nn.GELU.html) | [mindspore.nn.GELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.GELU.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/GELU.html) | -| [torch.nn.GRU](https://pytorch.org/docs/1.8.1/generated/torch.nn.GRU.html#torch.nn.GRU) | [mindspore.nn.GRU](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.GRU.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/GRU.html) | -| [torch.nn.GRUCell](https://pytorch.org/docs/1.8.1/generated/torch.nn.GRUCell.html) | [mindspore.nn.GRUCell](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.GRUCell.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/GRUCell.html) | -| [torch.nn.GroupNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.GroupNorm.html) | [mindspore.nn.GroupNorm](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.GroupNorm.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/GroupNorm.html) | -| [torch.nn.Hardshrink](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardshrink.html#torch.nn.Hardshrink) | [mindspore.nn.HShrink](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.HShrink.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/HShrink.html) | -| [torch.nn.Hardsigmoid](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardsigmoid.html) | [mindspore.nn.Hsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.HSigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Hardswish](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardswish.html) | [mindspore.nn.Hswish](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.HSwish.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Hardtanh](https://pytorch.org/docs/1.8.1/generated/torch.nn.Hardtanh.html) | [mindspore.nn.Hardtanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Hardtanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.HingeEmbeddingLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.HingeEmbeddingLoss.html) | [mindspore.nn.HingeEmbeddingLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.HingeEmbeddingLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.HuberLoss](https://pytorch.org/docs/stable/generated/torch.nn.HuberLoss.html) | [mindspore.nn.HuberLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.HuberLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Identity](https://pytorch.org/docs/1.8.1/generated/torch.nn.Identity.html) | [mindspore.nn.Identity](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Identity.html) | 功能一致,参数名不同| -| [torch.nn.init.uniform_](https://pytorch.org/docs/1.8.1/nn.init.html#torch.nn.init.uniform_) | [mindspore.ops.uniform](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.uniform.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Uniform.html) | -| [torch.nn.InstanceNorm1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.InstanceNorm1d.html) | [mindspore.nn.InstanceNorm1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.InstanceNorm1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/InstanceNorm1d.html) | -| [torch.nn.InstanceNorm2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.InstanceNorm2d.html) | [mindspore.nn.InstanceNorm2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.InstanceNorm2d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/InstanceNorm2d.html)| -| [torch.nn.InstanceNorm3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.InstanceNorm3d.html) | [mindspore.nn.InstanceNorm3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.InstanceNorm3d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/InstanceNorm3d.html)| -| [torch.nn.KLDivLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.KLDivLoss.html) | [mindspore.nn.KLDivLoss](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.KLDivLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.L1Loss](https://pytorch.org/docs/1.8.1/generated/torch.nn.L1Loss.html#torch.nn.L1Loss) | [mindspore.nn.L1Loss](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.L1Loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.LayerNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.LayerNorm.html) | [mindspore.nn.LayerNorm](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LayerNorm.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/LayerNorm.html) | -| [torch.nn.LeakyReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.LeakyReLU.html)| [mindspore.nn.LeakyReLU](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LeakyReLU.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/LeakyReLU.html) | -| [torch.nn.LPPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.LPPool1d.html) | [mindspore.nn.LPPool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LPPool1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.LPPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.LPPool2d.html) | [mindspore.nn.LPPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LPPool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.LSTM](https://pytorch.org/docs/1.8.1/generated/torch.nn.LSTM.html) | [mindspore.nn.LSTM](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LSTM.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/LSTM.html) | -| [torch.nn.LSTMCell](https://pytorch.org/docs/1.8.1/generated/torch.nn.LSTMCell.html?torch.nn.LSTMCell) | [mindspore.nn.LSTMCell](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LSTMCell.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/LSTMCell.html) | -| [torch.nn.Linear](https://pytorch.org/docs/1.8.1/generated/torch.nn.Linear.html) | [mindspore.nn.Dense](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Dense.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Dense.html) | -| [torch.nn.LocalResponseNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.LocalResponseNorm.html) | [mindspore.nn.LRN](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LRN.html) |[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/LRN.html) | -| [torch.nn.LogSigmoid](https://pytorch.org/docs/1.8.1/generated/torch.nn.LogSigmoid.html) | [mindspore.nn.LogSigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LogSigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.LogSoftMax](https://pytorch.org/docs/1.8.1/generated/torch.nn.LogSoftmax.html) | [mindspore.nn.LogSoftMax](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LogSoftmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.MSELoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MSELoss.html) | [mindspore.nn.MSELoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MSELoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.MarginRankingLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MarginRankingLoss.html) | [mindspore.nn.MarginRankingLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MarginRankingLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.MaxPool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxPool1d.html) | [mindspore.nn.MaxPool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MaxPool1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/MaxPool1d.html) | -| [torch.nn.MaxPool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxPool2d.html) | [mindspore.nn.MaxPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MaxPool2d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/MaxPool2d.html) | -| [torch.nn.MaxPool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxPool3d.html) | [mindspore.nn.MaxPool3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MaxPool3d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/MaxPool3d.html)| -| [torch.nn.MaxUnpool1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxUnpool1d.html) | [mindspore.nn.MaxUnpool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MaxUnpool1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.MaxUnpool2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxUnpool2d.html) | [mindspore.nn.MaxUnpool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MaxUnpool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.MaxUnpool3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.MaxUnpool3d.html) | [mindspore.nn.MaxUnpool3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MaxUnpool3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.ModuleDict](https://pytorch.org/docs/1.8.1/nn.html#torch.nn.ModuleDict) | [mindspore.nn.CellDict](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.CellDict.html#mindspore.nn.CellDict) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/CellDict.html) | -| [torch.nn.ModuleList](https://pytorch.org/docs/1.8.1/nn.html#torch.nn.ModuleList) | [mindspore.nn.CellList](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.CellList.html#mindspore.nn.CellList) | 功能一致,参数名不同 | -| [torch.nn.MultiheadAttention](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiheadAttention.html)| [mindspore.nn.MultiheadAttention](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MultiheadAttention.html)|[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/MultiheadAttention.html)| -| [torch.nn.MultiLabelMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiLabelMarginLoss.html) | [mindspore.nn.MultiLabelMarginLoss](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MultilabelMarginLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.MultiLabelSoftMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiLabelSoftMarginLoss.html) | [mindspore.nn.MultiLabelSoftMarginLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MultiLabelSoftMarginLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.MultiMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.MultiMarginLoss.html)| [mindspore.nn.MultiMarginLoss](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.MultiMarginLoss.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.NLLLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.NLLLoss.html) | [mindspore.nn.NLLLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.NLLLoss.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/NLLLoss.html) | -| [torch.nn.parameter.Parameter](https://pytorch.org/docs/1.8.1/generated/torch.nn.parameter.Parameter.html) | [mindspore.Parameter](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.Parameter.html#mindspore.Parameter) |[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Parameter.html)| -| [torch.nn.PReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.PReLU.html) | [mindspore.nn.PReLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.PReLU.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/PReLU.html) | -| [torch.nn.PixelShuffle](https://pytorch.org/docs/1.8.1/generated/torch.nn.PixelShuffle.html) | [mindspore.nn.PixelShuffle](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.PixelShuffle.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.PixelUnshuffle](https://pytorch.org/docs/1.8.1/generated/torch.nn.PixelUnshuffle.html) | [mindspore.nn.PixelUnshuffle](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.PixelUnshuffle.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.PoissonNLLLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.PoissonNLLLoss.html) | [mindspore.nn.PoissonNLLLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.PoissonNLLLoss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.ReflectionPad1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReflectionPad1d.html) | [mindspore.nn.ReflectionPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ReflectionPad1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ReflectionPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReflectionPad2d.html) | [mindspore.nn.ReflectionPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ReflectionPad2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReLU.html) | [mindspore.nn.ReLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ReLU.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/ReLU.html) | -| [torch.nn.ReLU6](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReLU6.html) | [mindspore.nn.ReLU6](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ReLU6.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.ReplicationPad1d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReplicationPad1d.html) | [mindspore.nn.ReplicationPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ReplicationPad1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ReplicationPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReplicationPad2d.html) | [mindspore.nn.ReplicationPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ReplicationPad2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.ReplicationPad3d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ReplicationPad3d.html) | [mindspore.nn.ReplicationPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ReplicationPad3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.RNN](https://pytorch.org/docs/1.8.1/generated/torch.nn.RNN.html) | [mindspore.nn.RNN](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.RNN.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/RNN.html) | -| [torch.nn.RNNCell](https://pytorch.org/docs/1.8.1/generated/torch.nn.RNNCell.html) | [mindspore.nn.RNNCell](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.RNNCell.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/RNNCell.html) | -| [torch.nn.RReLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.RReLU.html) | [mindspore.nn.RReLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.RReLU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.SeLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.SELU.html) | [mindspore.nn.SeLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SeLU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Sequential](https://pytorch.org/docs/1.8.1/generated/torch.nn.Sequential.html) | [mindspore.nn.SequentialCell](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SequentialCell.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/SequentialCell.html) | -| [torch.nn.Sigmoid](https://pytorch.org/docs/1.8.1/generated/torch.nn.Sigmoid.html) | [mindspore.nn.Sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Sigmoid.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Sigmoid.html) | -| [torch.nn.SiLU](https://pytorch.org/docs/1.8.1/generated/torch.nn.SiLU.html) | [mindspore.nn.SiLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SiLU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.SmoothL1Loss](https://pytorch.org/docs/1.8.1/generated/torch.nn.SmoothL1Loss.html) | [mindspore.nn.SmoothL1Loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SmoothL1Loss.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/SmoothL1Loss.html) | -| [torch.nn.SoftMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.SoftMarginLoss.html) | [mindspore.nn.SoftMarginLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SoftMarginLoss.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Softmax](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softmax.html) | [mindspore.nn.Softmax]( https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Softmax.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/nn_Softmax.html) | -| [torch.nn.Softmin](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softmin.html) | [mindspore.nn.Softmin](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Softmin.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/softmin.html) | -| [torch.nn.Softmax2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softmax2d.html) | [mindspore.nn.Softmax2d]( https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Softmax2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Softshrink](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softshrink.html) | [mindspore.nn.SoftShrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SoftShrink.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/SoftShrink.html) | -| [torch.nn.Softsign](https://pytorch.org/docs/1.8.1/generated/torch.nn.Softsign.html) | [mindspore.nn.Softsign](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Softsign.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.SyncBatchNorm](https://pytorch.org/docs/1.8.1/generated/torch.nn.SyncBatchNorm.html) | [mindspore.nn.SyncBatchNorm](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SyncBatchNorm.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/SyncBatchNorm.html) | -| [torch.nn.Tanh](https://pytorch.org/docs/1.8.1/generated/torch.nn.Tanh.html) | [mindspore.nn.Tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Tanh.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Tanh.html) | -| [torch.nn.Tanhshrink](https://pytorch.org/docs/1.8.1/generated/torch.nn.Tanhshrink.html) | [mindspore.nn.Tanhshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Tanhshrink.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Threshold](https://pytorch.org/docs/1.8.1/generated/torch.nn.Threshold.html) | [mindspore.nn.Threshold](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Threshold.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.Transformer](https://pytorch.org/docs/1.8.1/generated/torch.nn.Transformer.html)| [mindspore.nn.Transformer](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Transformer.html)|[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Transformer.html)| -| [torch.nn.TransformerDecoder](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerDecoder.html)| [mindspore.nn.TransformerDecoder](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.TransformerDecoder.html)|[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/TransformerDecoder.html)| -| [torch.nn.TransformerEncoder](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerEncoder.html)| [mindspore.nn.TransformerEncoder](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.TransformerEncoder.html)|[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/TransformerEncoder.html)| -| [torch.nn.TransformerDecoderLayer](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerDecoderLayer.html)| [mindspore.nn.TransformerDecoderLayer](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.TransformerDecoderLayer.html)|[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/TransformerDecoderLayer.html)| -| [torch.nn.TransformerEncoderLayer](https://pytorch.org/docs/1.8.1/generated/torch.nn.TransformerEncoderLayer.html)| [mindspore.nn.TransformerEncoderLayer](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.TransformerEncoderLayer.html)|[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/TransformerEncoderLayer.html)| -| [torch.nn.TripletMarginLoss](https://pytorch.org/docs/1.8.1/generated/torch.nn.TripletMarginLoss.html) | [mindspore.nn.TripletMarginLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.TripletMarginLoss.html) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/TripletMarginLoss.html) | -| [torch.nn.Unflatten](https://pytorch.org/docs/1.8.1/generated/torch.nn.Unflatten.html) | [mindspore.nn.Unflatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Unflatten.html) |功能一致,参数名不同| -| [torch.nn.Unfold](https://pytorch.org/docs/1.8.1/generated/torch.nn.Unfold.html) | [mindspore.nn.Unfold](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Unfold.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Unfold.html) | -| [torch.nn.Upsample](https://pytorch.org/docs/1.8.1/generated/torch.nn.Upsample.html#torch.nn.Upsample) | [mindspore.nn.Upsample](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Upsample.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/interpolate.html) | -| [torch.nn.ZeroPad2d](https://pytorch.org/docs/1.8.1/generated/torch.nn.ZeroPad2d.html) | [mindspore.nn.ZeroPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ZeroPad2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.AdaptiveAvgPool1d](https://PyTorch.org/docs/2.1/generated/torch.nn.AdaptiveAvgPool1d.html) | [mindspore.mint.nn.AdaptiveAvgPool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.AdaptiveAvgPool1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.AdaptiveAvgPool2d](https://PyTorch.org/docs/2.1/generated/torch.nn.AdaptiveAvgPool2d.html) | [mindspore.mint.nn.AdaptiveAvgPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.AdaptiveAvgPool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.AvgPool2d](https://PyTorch.org/docs/2.1/generated/torch.nn.AvgPool2d.html) | [mindspore.mint.nn.AvgPool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.AvgPool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.BCELoss](https://PyTorch.org/docs/2.1/generated/torch.nn.BCELoss.html) | [mindspore.mint.nn.BCELoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BCELoss.html) | 功能一致,参数不一致 | +| [torch.nn.BCEWithLogitsLoss](https://pytorch.org/docs/2.1/generated/torch.nn.BCEWithLogitsLoss.html) | [mindspore.mint.nn.BCEWithLogitsLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BCEWithLogitsLoss.html) | 功能一致,参数不一致 | +| [torch.nn.BatchNorm1d](https://PyTorch.org/docs/2.1/generated/torch.nn.BatchNorm1d.html) | [mindspore.mint.nn.BatchNorm1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BatchNorm1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.BatchNorm2d](https://PyTorch.org/docs/2.1/generated/torch.nn.BatchNorm2d.html) | [mindspore.mint.nn.BatchNorm2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BatchNorm2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.BatchNorm3d](https://PyTorch.org/docs/2.1/generated/torch.nn.BatchNorm3d.html) | [mindspore.mint.nn.BatchNorm3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.BatchNorm3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.ConstantPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ConstantPad1d.html) | [mindspore.mint.nn.ConstantPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConstantPad1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ConstantPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ConstantPad2d.html) | [mindspore.mint.nn.ConstantPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConstantPad2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ConstantPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ConstantPad3d.html) | [mindspore.mint.nn.ConstantPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConstantPad3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Conv3d](https://pytorch.org/docs/2.1/generated/torch.nn.Conv3d.html) | [mindspore.mint.nn.Conv3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Conv3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ConvTranspose2d](https://pytorch.org/docs/2.1/generated/torch.nn.ConvTranspose2d.html) | [mindspore.mint.nn.ConvTranspose2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ConvTranspose2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.CrossEntropyLoss](https://pytorch.org/docs/2.1/generated/torch.nn.CrossEntropyLoss.html) | [mindspore.mint.nn.CrossEntropyLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.CrossEntropyLoss.html) | 功能一致,参数不一致 | +| [torch.nn.Dropout](https://pytorch.org/docs/2.1/generated/torch.nn.Dropout.html) | [mindspore.mint.nn.Dropout](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Dropout.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Dropout2d](https://pytorch.org/docs/2.1/generated/torch.nn.Dropout2d.html) | [mindspore.mint.nn.Dropout2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Dropout2d.html) | 功能一致,参数不一致 | +| [torch.nn.ELU](https://pytorch.org/docs/2.1/generated/torch.nn.ELU.html) | [mindspore.mint.nn.ELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ELU.html) | 功能一致,参数不一致| +| [torch.nn.Embedding](https://pytorch.org/docs/2.1/generated/torch.nn.Embedding.html) | [mindspore.mint.nn.Embedding](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Embedding.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Flatten](https://pytorch.org/docs/2.1/generated/torch.nn.Flatten.html) | [mindspore.mint.flatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.flatten.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Fold](https://pytorch.org/docs/2.1/generated/torch.nn.Fold.html) | [mindspore.mint.nn.Fold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Fold.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.GroupNorm](https://pytorch.org/docs/2.1/generated/torch.nn.GroupNorm.html) | [mindspore.mint.nn.Fold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.GroupNorm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.GELU](https://pytorch.org/docs/2.1/generated/torch.nn.GELU.html) | [mindspore.mint.nn.GELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.GELU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.GroupNorm](https://pytorch.org/docs/2.1/generated/torch.nn.GroupNorm.html) | [mindspore.mint.nn.GroupNorm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.GroupNorm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Hardshrink](https://pytorch.org/docs/2.1/generated/torch.nn.Hardshrink.html#torch.nn.Hardshrink) | [mindspore.mint.nn.Hardshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Hardshrink.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Hardsigmoid](https://pytorch.org/docs/2.1/generated/torch.nn.Hardsigmoid.html) | [mindspore.mint.nn.Hardsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Hardsigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Hardswish](https://pytorch.org/docs/2.1/generated/torch.nn.Hardswish.html) | [mindspore.mint.nn.Hardswish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Hardswish.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Identity](https://pytorch.org/docs/2.1/generated/torch.nn.Identity.html) | [mindspore.mint.nn.Identity](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Identity.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.L1Loss](https://pytorch.org/docs/2.1/generated/torch.nn.L1Loss.html#torch.nn.L1Loss) | [mindspore.mint.nn.L1Loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.L1Loss.html) | 功能一致,参数不一致 | +| [torch.nn.LayerNorm](https://pytorch.org/docs/2.1/generated/torch.nn.LayerNorm.html) | [mindspore.mint.nn.LayerNorm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.LayerNorm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Linear](https://pytorch.org/docs/2.1/generated/torch.nn.Linear.html) | [mindspore.mint.nn.Linear](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Linear.html) | 功能一致,参数不一致 | +| [torch.nn.LogSigmoid](https://pytorch.org/docs/2.1/generated/torch.nn.LogSigmoid.html) | [mindspore.mint.nn.LogSigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.LogSigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.LogSoftMax](https://pytorch.org/docs/2.1/generated/torch.nn.LogSoftmax.html) | [mindspore.mint.nn.LogSoftmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.LogSoftmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.MSELoss](https://pytorch.org/docs/2.1/generated/torch.nn.MSELoss.html) | [mindspore.mint.nn.MSELoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.MSELoss.html) | 功能一致,参数不一致 | +| [torch.nn.MaxUnpool2d](https://pytorch.org/docs/2.1/generated/torch.nn.MaxUnpool2d.html) | [mindspore.mint.nn.MaxUnpool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.MaxUnpool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Mish](https://pytorch.org/docs/2.1/generated/torch.nn.Mish.html) | [mindspore.mint.nn.Mish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Mish.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.NLLLoss](https://pytorch.org/docs/2.1/generated/torch.nn.NLLLoss.html) | [mindspore.mint.nn.NLLLoss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.NLLLoss.html) | 功能一致,参数不一致 | +| [torch.nn.PReLU](https://pytorch.org/docs/2.1/generated/torch.nn.PReLU.html) | [mindspore.mint.nn.PReLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.PReLU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ReLU](https://pytorch.org/docs/2.1/generated/torch.nn.ReLU.html) | [mindspore.mint.nn.ReLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReLU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.ReLU6](https://pytorch.org/docs/2.1/generated/torch.nn.ReLU6.html) | [mindspore.mint.nn.ReLU6](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReLU6.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ReflectionPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ReflectionPad1d.html) | [mindspore.mint.nn.ReflectionPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReflectionPad1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ReflectionPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ReflectionPad2d.html) | [mindspore.mint.nn.ReflectionPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReflectionPad2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ReflectionPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ReflectionPad3d.html) | [mindspore.mint.nn.ReflectionPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReflectionPad3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ReplicationPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ReplicationPad1d.html) | [mindspore.mint.nn.ReplicationPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReplicationPad1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ReplicationPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ReplicationPad2d.html) | [mindspore.mint.nn.ReplicationPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReplicationPad2d.rst.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ReplicationPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ReplicationPad3d.html) | [mindspore.mint.nn.ReplicationPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ReplicationPad3d.rst.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.SeLU](https://pytorch.org/docs/2.1/generated/torch.nn.SELU.html) | [mindspore.mint.nn.SELU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SELU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.SiLU](https://pytorch.org/docs/2.1/generated/torch.nn.SiLU.html) | [mindspore.mint.nn.SiLU](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SiLU.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.SmoothL1Loss](https://pytorch.org/docs/2.1/generated/torch.nn.SmoothL1Loss.html) | [mindspore.mint.nn.SmoothL1Loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SmoothL1Loss.html) | 功能一致,参数不一致 | +| [torch.nn.Softmax](https://pytorch.org/docs/2.1/generated/torch.nn.Softmax.html) | [mindspore.mint.nn.Softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Softmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.Softshrink](https://pytorch.org/docs/2.1/generated/torch.nn.Softshrink.html) | [mindspore.mint.nn.Softshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Softshrink.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.SyncBatchNorm](https://pytorch.org/docs/2.1/generated/torch.nn.SyncBatchNorm.html) | [mindspore.mint.nn.SyncBatchNorm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.SyncBatchNorm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Tanh](https://pytorch.org/docs/2.1/generated/torch.nn.Tanh.html) | [mindspore.mint.nn.Tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Tanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.Unfold](https://pytorch.org/docs/2.1/generated/torch.nn.Unfold.html) | [mindspore.mint.nn.Unfold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Unfold.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.Upsample](https://pytorch.org/docs/2.1/generated/torch.nn.Upsample.html) | [mindspore.mint.nn.Upsample](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.Upsample.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ZeroPad1d](https://pytorch.org/docs/2.1/generated/torch.nn.ZeroPad1d.html) | [mindspore.mint.nn.ZeroPad1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ZeroPad1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ZeroPad2d](https://pytorch.org/docs/2.1/generated/torch.nn.ZeroPad2d.html) | [mindspore.mint.nn.ZeroPad2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ZeroPad2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.ZeroPad3d](https://pytorch.org/docs/2.1/generated/torch.nn.ZeroPad3d.html) | [mindspore.mint.nn.ZeroPad3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.ZeroPad3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | ## torch.nn.functional -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| [torch.nn.functional.adaptive_avg_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool1d) | [mindspore.ops.adaptive_avg_pool1d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.adaptive_avg_pool1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AdaptiveAvgPool1d.html) | -| [torch.nn.functional.adaptive_avg_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool2d) | [mindspore.ops.adaptive_avg_pool2d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.adaptive_avg_pool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.adaptive_avg_pool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool3d) | [mindspore.ops.adaptive_avg_pool3d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.adaptive_avg_pool3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.adaptive_max_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_max_pool1d) | [mindspore.ops.adaptive_max_pool1d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.adaptive_max_pool1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AdaptiveMaxPool1d.html) | -| [torch.nn.functional.adaptive_max_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.adaptive_max_pool2d) | [mindspore.ops.adaptive_max_pool2d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.adaptive_max_pool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.affine_grid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.affine_grid) | [mindspore.ops.affine_grid](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.affine_grid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.avg_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.avg_pool1d) | [mindspore.ops.avg_pool1d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.avg_pool1d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/avg_pool1d.html) | -| [torch.nn.functional.avg_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.avg_pool2d) | [mindspore.ops.avg_pool2d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.avg_pool2d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/avg_pool1d.html) | -| [torch.nn.functional.avg_pool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.avg_pool3d) | [mindspore.ops.avg_pool3d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.avg_pool3d.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/avg_pool1d.html) | -| [torch.nn.functional.batch_norm](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.batch_norm) | [mindspore.ops.batch_norm](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.batch_norm.html) | 功能一致,参数名不同| -| [torch.nn.functional.bilinear](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.bilinear) | [mindspore.ops.bidense](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.bidense.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.binary_cross_entropy](https://pytorch.org/docs/1.8.1/nn.functional.html#binary-cross-entropy) | [mindspore.ops.binary_cross_entropy](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.binary_cross_entropy.html) | 功能一致,参数名不同| -| [torch.nn.functional.binary_cross_entropy_with_logits](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.binary_cross_entropy_with_logits) | [mindspore.ops.binary_cross_entropy_with_logits](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.binary_cross_entropy_with_logits.html) | 功能一致,参数名不同 | -| [torch.nn.functional.celu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.celu) | [mindspore.ops.celu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.celu.html) | 功能一致,参数名不同| -| [torch.nn.functional.conv1d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.conv1d) | [mindspore.ops.conv1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.conv1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.conv2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.conv2d) | [mindspore.ops.conv2d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.conv2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.conv3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.conv3d) | [mindspore.ops.conv3d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.conv3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.cosine_embedding_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.cosine_embedding_loss) | [mindspore.ops.cosine_embedding_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cosine_embedding_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.cosine_similarity](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.cosine_similarity)| [mindspore.ops.cosine_similarity](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cosine_similarity.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.cross_entropy](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.cross_entropy)| [mindspore.ops.cross_entropy](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.cross_entropy.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.ctc_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.ctc_loss)| [mindspore.ops.ctc_loss](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.ctc_loss.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.linear](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.linear) | [mindspore.ops.dense](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.dense.html#mindspore.ops.dense) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.dropout](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.dropout) | [mindspore.ops.dropout](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.dropout.html#mindspore.ops.dropout) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/drop_out.html) | -| [torch.nn.functional.dropout2d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.dropout2d) | [mindspore.ops.dropout2d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.dropout2d.html#mindspore.ops.dropout2d) | [功能一致,参数数据类型不同](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/dropout2d.html) | -| [torch.nn.functional.dropout3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.dropout3d) | [mindspore.ops.dropout3d](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.dropout3d.html#mindspore.ops.dropout3d) | [功能一致,参数数据类型不同](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/dropout3d.html) | -| [torch.nn.functional.elu](https://pytorch.org/docs/1.8.1/nn.functional.html#elu) | [mindspore.ops.elu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.elu.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/elu.html) | -| [torch.nn.functional.fold](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.fold) | [mindspore.ops.fold](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.fold.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/mindspore.ops.fold.html) | -| [torch.nn.functional.gelu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.gelu) | [mindspore.ops.gelu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.gelu.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/mindspore.ops.gelu.html) | -| [torch.nn.functional.glu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.glu) | [mindspore.ops.glu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.glu.html) | 功能一致,参数名不同 | -| [torch.nn.functional.grid_sample](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.grid_sample) | [mindspore.ops.grid_sample](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.grid_sample.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/grid_sample.html) | -| [torch.nn.functional.gumbel_softmax](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.gumbel_softmax) | [mindspore.ops.gumbel_softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.gumbel_softmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.hardshrink](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.hardshrink) | [mindspore.ops.hardshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hardshrink.html) | 功能一致,参数名不同 | -| [torch.nn.functional.hardsigmoid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.hardsigmoid) | [mindspore.ops.hardsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hardsigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.hardswish](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.hardswish) | [mindspore.ops.hardswish](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hardswish.html) | 功能一致,参数名不同 | -| [torch.nn.functional.hardtanh](https://pytorch.org/docs/1.8.1/nn.functional.html#hardtanh) | [mindspore.ops.hardtanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hardtanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.hinge_embedding_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#hinge-embedding-loss) | [mindspore.ops.hinge_embedding_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.hinge_embedding_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.interpolate](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.interpolate) | [mindspore.ops.interpolate](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.interpolate.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/interpolate.html) | -| [torch.nn.functional.kl_div](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.kl_div) | [mindspore.ops.kl_div](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.kl_div.html#mindspore.ops.kl_div) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/kl_div.html) | -| [torch.nn.functional.l1_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#l1-loss) | [mindspore.ops.l1_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.l1_loss.html#mindspore.ops.l1_loss) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.leaky_relu](https://pytorch.org/docs/1.8.1/nn.functional.html#leaky-relu) | [mindspore.ops.leaky_relu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.leaky_relu.html#mindspore.ops.leaky_relu) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/leaky_relu.html) | -| [torch.nn.functional.logsigmoid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.logsigmoid) | [mindspore.ops.logsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.logsigmoid.html) | 功能一致,参数名不同 | -| [torch.nn.functional.log_softmax](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.log_softmax) | [mindspore.ops.log_softmax](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.log_softmax.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/log_softmax.html) | -| [torch.nn.functional.lp_pool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#lp-pool1d) | [mindspore.ops.lp_pool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.lp_pool1d.html) | 功能一致,参数名不同| -| [torch.nn.functional.lp_pool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#lp-pool2d) | [mindspore.ops.lp_pool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.lp_pool2d.html) | 功能一致,参数名不同| -| [torch.nn.functional.margin_ranking_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#margin-ranking-loss) | [mindspore.ops.margin_ranking_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.margin_ranking_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.max_pool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.max_pool3d) | [mindspore.ops.max_pool3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.max_pool3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.max_unpool1d](https://pytorch.org/docs/1.8.1/nn.functional.html#max-unpool1d) | [mindspore.ops.max_unpool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.max_unpool1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.max_unpool2d](https://pytorch.org/docs/1.8.1/nn.functional.html#max-unpool2d) | [mindspore.ops.max_unpool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.max_unpool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.max_unpool3d](https://pytorch.org/docs/1.8.1/nn.functional.html#max-unpool3d) | [mindspore.ops.max_unpool3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.max_unpool3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.mse_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#mse-loss) | [mindspore.ops.mse_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.mse_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.nn.functional.multi_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.multi_margin_loss) | [mindspore.ops.multi_margin_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.multi_margin_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.multilabel_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.multilabel_margin_loss) | [mindspore.ops.multilabel_margin_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.multilabel_margin_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.multilabel_soft_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.multilabel_soft_margin_loss) | [mindspore.ops.multilabel_soft_margin_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.multilabel_soft_margin_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.nll_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.nll_loss) | [mindspore.ops.nll_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.nll_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.pad](https://pytorch.org/docs/1.8.1/nn.functional.html#pad) | [mindspore.ops.pad](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.pad.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/pad.html) | -| [torch.nn.functional.pdist](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.pdist) | [mindspore.ops.pdist](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.pdist.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.pixel_shuffle](https://pytorch.org/docs/1.8.1/nn.functional.html#pixel-shuffle) | [mindspore.ops.pixel_shuffle](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.pixel_shuffle.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.pixel_unshuffle](https://pytorch.org/docs/1.8.1/nn.functional.html#pixel-unshuffle) | [mindspore.ops.pixel_unshuffle](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.pixel_unshuffle.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.prelu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.prelu) | [mindspore.ops.prelu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.prelu.html) | 功能一致,参数名不同 | -| [torch.nn.functional.relu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.relu) | [mindspore.ops.relu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.relu.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.relu6](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.relu6) | [mindspore.ops.relu6](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.relu6.html) | 功能一致,参数名不同 | -| [torch.nn.functional.rrelu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.rrelu) | [mindspore.ops.rrelu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.rrelu.html) | 功能一致,参数名不同 | -| [torch.nn.functional.selu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.selu) | [mindspore.ops.selu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.selu.html) | 功能一致,参数名不同 | -| [torch.nn.functional.sigmoid](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.sigmoid) | [mindspore.ops.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.sigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.silu](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.silu) | [mindspore.ops.silu](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.silu.html) | 功能一致,参数名不同 | -| [torch.nn.functional.softmax](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softmax) | [mindspore.ops.softmax](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.softmax.html#mindspore.ops.softmax) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/softmax.html) | -| [torch.nn.functional.softmin](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softmin) | [mindspore.ops.softmin](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.softmin.html#mindspore.ops.softmin) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/softmin.html) | -| [torch.nn.functional.softsign](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softsign) | [mindspore.ops.softsign](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.softsign.html) | 功能一致,参数名不同 | -| [torch.nn.functional.smooth_l1_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.smooth_l1_loss) | [mindspore.ops.smooth_l1_loss](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.smooth_l1_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.soft_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#soft-margin-loss) | [mindspore.ops.soft_margin_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.soft_margin_loss.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.softshrink](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.softshrink) | [mindspore.ops.softshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.softshrink.html) | 功能一致,参数名不同 | -| [torch.nn.functional.tanh](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.tanh) | [mindspore.ops.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.tanhshrink](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.tanhshrink) | [mindspore.ops.tanhshrink](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tanhshrink.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.nn.functional.threshold](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.threshold) | [mindspore.ops.threshold](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.threshold.html) | 功能一致,参数名不同 | -| [torch.nn.functional.triplet_margin_loss](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.triplet_margin_loss) | [mindspore.ops.triplet_margin_loss](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.triplet_margin_loss.html) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/TripletMarginLoss.html) | -| [torch.nn.functional.unfold](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.unfold) | [mindspore.ops.unfold](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.unfold.html) | 一致 | -| [torch.nn.functional.upsample](https://pytorch.org/docs/1.8.1/nn.functional.html#torch.nn.functional.upsample) | [mindspore.ops.upsample](https://mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.upsample.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/interpolate.html) | - -## torch.nn.Module - -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| [torch.nn.Module.apply](https://pytorch.org/docs/1.8.1/generated/torch.nn.Module.html#torch.nn.Module.apply) | [mindspore.nn.Cell.apply](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Cell.html#mindspore.nn.Cell.apply) | 一致 | - -## torch.nn.utils - -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -|[torch.nn.utils.clip_grad_value_](https://pytorch.org/docs/1.8.1/generated/torch.nn.utils.clip_grad_value_.html) |[mindspore.ops.clip_by_value](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.clip_by_value.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/clip_by_value.html) | -|[torch.nn.utils.clip_grad_norm_](https://pytorch.org/docs/1.8.1/generated/torch.nn.utils.clip_grad_norm_.html) |[mindspore.ops.clip_by_norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.clip_by_norm.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/clip_by_norm.html) | +| [torch.nn.functional.adaptive_avg_pool1d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool1d) | [mindspore.mint.nn.functional.adaptive_avg_pool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.adaptive_avg_pool1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.adaptive_avg_pool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.adaptive_avg_pool2d) | [mindspore.mint.nn.functional.adaptive_avg_pool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.adaptive_avg_pool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.avg_pool1d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.avg_pool1d) | [mindspore.mint.nn.functional.avg_pool1d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.avg_pool1d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.avg_pool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.avg_pool2d) | [mindspore.mint.nn.functional.avg_pool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.avg_pool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.batch_norm](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.batch_norm) | [mindspore.mint.nn.functional.batch_norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.batch_norm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.functional.binary_cross_entropy](https://pytorch.org/docs/2.1/nn.functional.html#binary-cross-entropy) | [mindspore.mint.nn.functional.binary_cross_entropy](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.binary_cross_entropy.html) | 功能一致,参数不一致 | +| [torch.nn.functional.binary_cross_entropy_with_logits](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.binary_cross_entropy_with_logits) | [mindspore.mint.nn.functional.binary_cross_entropy_with_logits](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.binary_cross_entropy_with_logits.html) |功能一致,参数不一致 | +| [torch.nn.functional.conv3d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.conv3d) | [mindspore.mint.nn.functional.conv3d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.conv3d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.conv_transpose2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.conv_transpose2d) | [mindspore.mint.nn.functional.conv_transpose2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.conv_transpose2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.dropout](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.dropout) | [mindspore.mint.nn.functional.dropout](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.dropout.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.dropout2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.dropout2d) | [mindspore.mint.nn.functional.dropout2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.dropout2d.html) | 功能一致,参数不一致 | +| [torch.nn.functional.elu](https://pytorch.org/docs/2.1/nn.functional.html#elu) | [mindspore.mint.nn.functional.elu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.elu.html) | 功能一致,参数不一致 | +| [torch.nn.functional.embedding](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.embedding) | [mindspore.mint.nn.functional.embedding](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.embedding.html) | 功能一致,参数不一致 | +| [torch.nn.functional.fold](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.fold) | [mindspore.mint.nn.functional.fold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.fold.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.functional.gelu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.gelu) | [mindspore.mint.nn.functional.gelu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.gelu.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.functional.grid_sample](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.grid_sample) | [mindspore.mint.nn.functional.grid_sample](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.grid_sample.html) | 功能一致,参数不一致 | +| [torch.nn.functional.hardshrink](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.hardshrink) | [mindspore.mint.nn.functional.hardshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.hardshrink.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.hardsigmoid](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.hardsigmoid) | [mindspore.mint.nn.functional.hardsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.hardsigmoid.html) | 功能一致,参数不一致 | +| [torch.nn.functional.hardswish](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.hardswish) | [mindspore.mint.nn.functional.hardswish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.hardswish.html) | 功能一致,参数不一致 | +| [torch.nn.functional.interpolate](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.interpolate) | [mindspore.mint.nn.functional.interpolate](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.interpolate.html) | 功能一致,参数不一致 | +| [torch.nn.functional.l1_loss](https://pytorch.org/docs/2.1/nn.functional.html#l1-loss) | [mindspore.mint.nn.functional.l1_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.l1_loss.html) | 功能一致,参数不一致 | +| [torch.nn.functional.leaky_relu](https://pytorch.org/docs/2.1/nn.functional.html#leaky-relu) | [mindspore.mint.nn.functional.leaky_relu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.leaky_relu.html) | 功能一致,参数不一致 | +| [torch.nn.functional.linear](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.linear) | [mindspore.mint.nn.functional.linear](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.linear.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.log_softmax](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.log_softmax) | [mindspore.mint.nn.functional.log_softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.log_softmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.logsigmoid](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.logsigmoid) | [mindspore.mint.nn.functional.logsigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.logsigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.max_pool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.max_pool2d) | [mindspore.mint.nn.functional.max_pool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.max_pool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.max_unpool2d](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.max_unpool2d) | [mindspore.mint.nn.functional.max_unpool2d](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.max_unpool2d.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.mish](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.mish) | [mindspore.mint.nn.functional.mish](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.mish.html) | 功能一致,参数不一致 | +| [torch.nn.functional.mse_loss](https://pytorch.org/docs/2.1/nn.functional.html#mse-loss) | [mindspore.mint.nn.functional.mse_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.mse_loss.html) | 功能一致,参数不一致 | +| [torch.nn.functional.nll_loss](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.nll_loss) | [mindspore.mint.nn.functional.nll_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.nll_loss.html) | 功能一致,参数不一致 | +| [torch.nn.functional.normalize](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.normalize) | [mindspore.mint.nn.functional.normalize](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.normalize.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.one_hot](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.one_hot) | [mindspore.mint.nn.functional.one_hot](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.one_hot.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.pad](https://pytorch.org/docs/2.1/nn.functional.html#pad) | [mindspore.mint.nn.functional.pad](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.pad.html) | 功能一致,参数不一致 | +| [torch.nn.functional.prelu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.prelu) | [mindspore.mint.nn.functional.prelu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.prelu.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.relu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.relu) | [mindspore.mint.nn.functional.relu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.relu.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.relu6](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.relu6) | [mindspore.mint.nn.functional.relu6](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.relu6.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.relu_](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.relu_) | [mindspore.mint.nn.functional.relu_](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.relu_.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.selu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.selu) | [mindspore.mint.nn.functional.selu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.selu.html) | 功能一致,参数不一致 | +| [torch.nn.functional.sigmoid](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.sigmoid) | [mindspore.mint.nn.functional.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.sigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.silu](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.silu) | [mindspore.mint.nn.functional.silu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.silu.html) | 功能一致,参数不一致 | +| [torch.nn.functional.smooth_l1_loss](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.smooth_l1_loss) | [mindspore.mint.nn.functional.smooth_l1_loss](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.smooth_l1_loss.html) | 功能一致,参数不一致 | +| [torch.nn.functional.softmax](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.softmax) | [mindspore.mint.nn.functional.softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.softmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.nn.functional.softplus](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.softplus) | [mindspore.mint.nn.functional.softplus](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.softplus.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.softshrink](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.softshrink) | [mindspore.mint.nn.functional.softshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.softshrink.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.tanh](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.tanh) | [mindspore.mint.nn.functional.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.tanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.nn.functional.unfold](https://pytorch.org/docs/2.1/nn.functional.html#torch.nn.functional.unfold) | [mindspore.mint.nn.functional.unfold](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.nn.functional.unfold.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | + +## torch.special + +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | +| -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---- | +| [torch.special.erfc](https://pytorch.org/docs/2.1/special.html#torch.special.erfc) | [mindspore.mint.special.erfc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.special.erfc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.special.exp2](https://pytorch.org/docs/2.1/special.html#torch.special.exp2) | [mindspore.mint.special.exp2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.special.exp2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.special.expm1](https://pytorch.org/docs/2.1/special.html#torch.special.expm1) | [mindspore.mint.special.expm1](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.special.expm1.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.special.log1p](https://pytorch.org/docs/2.1/special.html#torch.special.log1p) | [mindspore.mint.special.log1p](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.special.log1p.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.special.log_softmax](https://pytorch.org/docs/2.1/special.html#torch.special.log_softmax) | [mindspore.mint.special.log_softmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.special.log_softmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.special.round](https://pytorch.org/docs/2.1/special.html#torch.special.round) | [mindspore.mint.special.round](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.special.round.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.special.sinc](https://pytorch.org/docs/2.1/special.html#torch.special.sinc) | [mindspore.mint.special.sinc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.special.sinc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | ## torch.Tensor -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | -|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------| -| [torch.Tensor.abs](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.abs) | [mindspore.Tensor.abs](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.abs.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.absolute](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.absolute) | [mindspore.Tensor.absolute](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.absolute.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.acos](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.acos)| [mindspore.Tensor.acos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.acos.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.acosh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.acosh)| [mindspore.Tensor.acosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.acosh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.add](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.add)| [mindspore.Tensor.add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.add.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.addbmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addbmm) | [mindspore.Tensor.addbmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.addbmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.addcdiv](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addcdiv)| [mindspore.Tensor.addcdiv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.addcdiv.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.addcmul](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addcmul)| [mindspore.Tensor.addcmul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.addcmul.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.addmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addmm) | [mindspore.Tensor.addmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.addmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.addmv](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addmv) | [mindspore.Tensor.addmv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.addmv.html) | 功能一致,参数名不同 | -| [torch.Tensor.addr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.addr) | [mindspore.Tensor.addr](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.addr.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.all](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.all) | [mindspore.Tensor.all](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.all.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/all.html) | -| [torch.Tensor.amax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.amax) | [mindspore.Tensor.amax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.amax.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/amax.html) | -| [torch.Tensor.amin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.amin) | [mindspore.Tensor.amin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.amin.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/amin.html) | -| [torch.Tensor.any](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.any) | [mindspore.Tensor.any](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.any.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/any.html) | -| [torch.Tensor.arccos](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arccos) | [mindspore.Tensor.arccos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arccos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.arccosh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arccosh) | [mindspore.Tensor.arccosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arccosh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.argmax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.argmax) | [mindspore.Tensor.argmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.argmax.html#mindspore.Tensor.argmax) | 功能一致,参数名不同 | -| [torch.Tensor.angle](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.angle) | [mindspore.Tensor.angle](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.angle.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.arcsin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arcsin) | [mindspore.Tensor.arcsin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arcsin.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.arcsinh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arcsinh) | [mindspore.Tensor.arcsinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arcsinh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.arctan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arctan) | [mindspore.Tensor.arctan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arctan.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.arctanh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.arctanh) | [mindspore.Tensor.arctanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arctanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.argmin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.argmin) | [mindspore.Tensor.argmin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.argmin.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/argmin.html) | -| [torch.Tensor.argsort](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.argsort) | [mindspore.Tensor.argsort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.argsort.html) |功能一致,参数名不同| -| [torch.Tensor.asin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.asin)| [mindspore.Tensor.asin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.asin.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.asinh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.asinh)| [mindspore.Tensor.asinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.asinh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.atan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.atan)| [mindspore.Tensor.atan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.atan.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.atan2](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.atan2) | [mindspore.Tensor.atan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.atan2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.atanh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.atanh)| [mindspore.Tensor.atanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.atanh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.baddbmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.baddbmm) | [mindspore.Tensor.baddbmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.baddbmm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.bernoulli](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bernoulli) | [mindspore.Tensor.bernoulli](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bernoulli.html) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/bernoulli.html) | -| [torch.Tensor.bincount](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bincount) | [mindspore.Tensor.bincount](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bincount.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.bitwise_and](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bitwise_and)| [mindspore.Tensor.bitwise_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bitwise_and.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.bitwise_or](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bitwise_or)| [mindspore.Tensor.bitwise_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bitwise_or.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.bitwise_xor](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bitwise_xor)| [mindspore.Tensor.bitwise_xor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bitwise_xor.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.bmm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bmm)| [mindspore.Tensor.bmm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bmm.html)| 功能一致,参数名不同 | -| [torch.Tensor.bool](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.bool)| [mindspore.Tensor.bool](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bool.html)| 功能一致,参数名不同 | -| [torch.Tensor.broadcast_to](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.broadcast_to) | [mindspore.Tensor.broadcast_to](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.broadcast_to.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/broadcast_to.html) | -| [torch.Tensor.cauchy_](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cauchy_) | [mindspore.Tensor.cauchy](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cauchy.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.ceil](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ceil) | [mindspore.Tensor.ceil](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ceil.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.chunk](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.chunk) | [mindspore.Tensor.chunk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.chunk.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.cholesky](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cholesky) | [mindspore.Tensor.cholesky](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cholesky.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.cholesky_solve](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cholesky_solve) | [mindspore.Tensor.cholesky_solve](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cholesky_solve.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.clamp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.clamp) | [mindspore.Tensor.clamp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.clamp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.clip](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.clip) | [mindspore.Tensor.clip](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.clip.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.conj](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.conj) | [mindspore.Tensor.conj](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.conj.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.contiguous](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.contiguous) | [mindspore.Tensor.contiguous](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.contiguous.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.copysign](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.copysign) | [mindspore.Tensor.copysign](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.copysign.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.cos](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cos) | [mindspore.Tensor.cos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.cosh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cosh) | [mindspore.Tensor.cosh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cosh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.cross](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cross) | [mindspore.Tensor.cross](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cross.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.cummax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cummax) | [mindspore.Tensor.cummax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cummax.html) | 功能一致,参数名不同 | -| [torch.Tensor.cummin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cummin) | [mindspore.Tensor.cummin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cummin.html) | 功能一致,参数名不同 | -| [torch.Tensor.cumprod](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cumprod) | [mindspore.Tensor.cumprod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cumprod.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.cumsum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.cumsum) | [mindspore.Tensor.cumsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cumsum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.deg2rad](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.deg2rad) | [mindspore.Tensor.deg2rad](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.deg2rad.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.diag](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diag) | [mindspore.Tensor.diag](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.diag.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/diag.html) | -| [torch.Tensor.diagonal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diagonal) | [mindspore.Tensor.diagonal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.diagonal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.diagflat](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diagflat) | [mindspore.Tensor.diagflat](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.diagflat.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.diff](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.diff) | [mindspore.Tensor.diff](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.diff.html) | 功能一致,参数名不同 | -| [torch.Tensor.digamma](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.digamma) | [mindspore.Tensor.digamma](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.digamma.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.dim](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.dim) | [mindspore.Tensor.ndimension](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ndimension.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.div](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.div) | [mindspore.Tensor.div](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.div.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.divide](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.divide) | [mindspore.Tensor.divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.divide.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.eq](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.eq) | [mindspore.Tensor.equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.erf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.erf) | [mindspore.Tensor.erf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.erf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.erfc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.erfc) | [mindspore.Tensor.erfc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.erfc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.erfinv](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.erfinv) | [mindspore.Tensor.erfinv](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.erfinv.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.exp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.exp) | [mindspore.Tensor.exp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.exp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.expand](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.expand) | [mindspore.Tensor.broadcast_to](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.broadcast_to.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/expand.html) | -| [torch.Tensor.expand_as](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.expand_as) | [mindspore.Tensor.expand_as](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.expand_as.html#mindspore.Tensor.expand_as) | 功能一致,参数名不同 | -| [torch.Tensor.expm1](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.expm1) | [mindspore.Tensor.expm1](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.expm1.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.fill_diagonal_](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fill_diagonal_) | [mindspore.Tensor.fill_diagonal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.fill_diagonal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.flip](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.flip) | [mindspore.Tensor.flip](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.flip.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/flip.html) | -| [torch.Tensor.fliplr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fliplr) | [mindspore.Tensor.fliplr](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.fliplr.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.flipud](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.flipud) | [mindspore.Tensor.flipud](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.flipud.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.float](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.float) | [mindspore.Tensor.float](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.float.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.float_power](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.float_power) | [mindspore.Tensor.float_power](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.float_power.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/float_power.html) | -| [torch.Tensor.floor](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.floor) | [mindspore.Tensor.floor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.floor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.floor_divide](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.floor_divide) | [mindspore.Tensor.floor_divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.floor_divide.html) | 功能一致,参数名不同 | -| [torch.Tensor.fmax](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fmax) | [mindspore.Tensor.fmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.fmax.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.fmod](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.fmod) | [mindspore.Tensor.fmod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.fmod.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.frac](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.frac) | [mindspore.Tensor.frac](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.frac.html) | 功能一致,参数名不同 | -| [torch.Tensor.gather](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.gather) | [mindspore.Tensor.gather_elements](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.gather_elements.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.ge](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ge) | [mindspore.Tensor.ge](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ge.html) | 功能一致,参数名不同 | -| [torch.Tensor.geqrf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.geqrf) | [mindspore.Tensor.geqrf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.geqrf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.ger](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ger) | [mindspore.Tensor.ger](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ger.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/ger.html) | -| [torch.Tensor.greater](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.greater) | [mindspore.Tensor.greater](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.greater.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.greater_equal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.greater_equal) | [mindspore.Tensor.greater_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.greater_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.gt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.gt) | [mindspore.Tensor.gt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.gt.html) | 功能一致,参数名不同 | -| [torch.Tensor.H](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.H) | [mindspore.Tensor.H](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.H.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.half](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.half) | [mindspore.Tensor.half](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.half.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.hardshrink](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.hardshrink) | [mindspore.Tensor.hardshrink](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.hardshrink.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.heaviside](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.heaviside) | [mindspore.Tensor.heaviside](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.heaviside.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.histc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.histc) | [mindspore.Tensor.histc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.histc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.hypot](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.hypot) | [mindspore.Tensor.hypot](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.hypot.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.i0](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.i0) | [mindspore.Tensor.i0](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.i0.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.igamma](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.igamma)| [mindspore.Tensor.igamma](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.igamma.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.igammac](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.igammac)| [mindspore.Tensor.igammac](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.igammac.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.imag](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.imag)| [mindspore.Tensor.imag](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.imag.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.index_add](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_add) | [mindspore.Tensor.index_add](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.index_add.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.index_fill](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_fill) | [mindspore.Tensor.index_fill](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.index_fill.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.index_put](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_put) | [mindspore.Tensor.index_put](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.index_put.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.index_select](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.index_select) | [mindspore.Tensor.index_select](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.index_select.html) | 功能一致,参数名不同 | -| [torch.Tensor.inner](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.inner) | [mindspore.Tensor.inner](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.inner.html) | 功能一致,参数名不同 | -| [torch.Tensor.int](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.int) | [mindspore.Tensor.int](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.int.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.inverse](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.inverse) | [mindspore.Tensor.inverse](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.inverse.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.isclose](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isclose) | [mindspore.Tensor.isclose](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isclose.html) | 功能一致,参数名不同 | -| [torch.Tensor.isfinite](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isfinite) | [mindspore.Tensor.isfinite](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isfinite.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.isinf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isinf) | [mindspore.Tensor.isinf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isinf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.isnan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isnan) | [mindspore.Tensor.isnan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isnan.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.is_complex](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_complex) | [mindspore.Tensor.is_complex](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.is_complex.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.is_contiguous](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_contiguous) | [mindspore.Tensor.is_contiguous](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.is_contiguous.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.is_floating_point](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_floating_point) | [mindspore.Tensor.is_floating_point](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.is_floating_point.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.is_signed](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.is_signed) | [mindspore.Tensor.is_signed](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.is_signed.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.isneginf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isneginf) | [mindspore.Tensor.isneginf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isneginf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.isposinf](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isposinf) | [mindspore.Tensor.isposinf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isposinf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.isreal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.isreal) | [mindspore.Tensor.isreal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isreal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.item](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.item) | [mindspore.Tensor.item](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.item.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.lcm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lcm) | [mindspore.Tensor.lcm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.lcm.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.ldexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ldexp) | [mindspore.Tensor.ldexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ldexp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.le](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.le) | [mindspore.Tensor.le](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.le.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.lerp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lerp) | [mindspore.Tensor.lerp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.lerp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.less](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.less) | [mindspore.Tensor.less](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.less.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.less_equal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.less_equal) | [mindspore.Tensor.less_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.less_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.log](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log) | [mindspore.Tensor.log](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.log.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.log_normal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log_normal) | [mindspore.Tensor.log_normal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.log_normal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.log10](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log10) | [mindspore.Tensor.log10](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.log10.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.log1p](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log1p) | [mindspore.Tensor.log1p](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.log1p.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.log2](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.log2) | [mindspore.Tensor.log2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.log2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logaddexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logaddexp) | [mindspore.Tensor.logaddexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logaddexp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logaddexp2](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logaddexp2) | [mindspore.Tensor.logaddexp2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logaddexp2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logcumsumexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logcumsumexp) | [mindspore.Tensor.logcumsumexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logcumsumexp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logdet](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logdet) | [mindspore.Tensor.logdet](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logdet.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logical_and](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_and) | [mindspore.Tensor.logical_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_and.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logical_not](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_not) | [mindspore.Tensor.logical_not](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_not.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logical_or](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_or) | [mindspore.Tensor.logical_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_or.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logical_xor](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logical_xor) | [mindspore.Tensor.logical_xor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_xor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.logit](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logit)| [mindspore.Tensor.logit](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logit.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.logsumexp](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.logsumexp) | [mindspore.Tensor.logsumexp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logsumexp.html) | 功能一致,参数名不同 | -| [torch.Tensor.long](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.long) | [mindspore.Tensor.long](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.long.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.lt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lt) | [mindspore.Tensor.lt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.lt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.lu_solve](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.lu_solve) | [mindspore.Tensor.lu_solve](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.lu_solve.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.masked_fill](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.masked_fill) | [mindspore.Tensor.masked_fill](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_fill.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.masked_scatter](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.masked_scatter) | [mindspore.Tensor.masked_scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_scatter.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/masked_scatter.html) | -| [torch.Tensor.masked_select](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.masked_select) | [mindspore.Tensor.masked_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_select.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.matmul](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.matmul) | [mindspore.Tensor.matmul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.matmul.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.max](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.max) | [mindspore.Tensor.max](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.max.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/tensor_max.html) | -| [torch.Tensor.maximum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.maximum) | [mindspore.Tensor.maximum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.maximum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.mean](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mean) | [mindspore.Tensor.mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mean.html) | 功能一致,参数名不同 | -| [torch.Tensor.median](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.median) | [mindspore.Tensor.median](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.median.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/median.html) | -| [torch.Tensor.mH](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mH)| [mindspore.Tensor.mH](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mH.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.min](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.min) | [mindspore.Tensor.min](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.min.html#mindspore.Tensor.min) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/tensor_min.html) | -| [torch.Tensor.minimum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.minimum) | [mindspore.Tensor.minimum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.minimum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.mm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mm)| [mindspore.Tensor.mm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mm.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.moveaxis](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.moveaxis) | [mindspore.Tensor.moveaxis](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.moveaxis.html) | 功能一致 | -| [torch.Tensor.movedim](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.movedim) | [mindspore.Tensor.movedim](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.movedim.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.msort](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.msort) | [mindspore.Tensor.msort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.msort.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.mT](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mT)| [mindspore.Tensor.mT](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mT.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.mul](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mul) | [mindspore.Tensor.mul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mul.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.multinomial](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.multinomial) | [mindspore.Tensor.multinomial](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.multinomial.html) | [功能一致,参数默认值不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/multinomial.html) | -| [torch.Tensor.multiply](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.multiply) | [mindspore.Tensor.multiply](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.multiply.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.mvlgamma](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.mvlgamma) | [mindspore.Tensor.mvlgamma](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mvlgamma.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.nan_to_num](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nan_to_num) | [mindspore.Tensor.nan_to_num](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nan_to_num.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.nanmedian](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nanmedian) | [mindspore.Tensor.nanmedian](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nanmedian.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.nansum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nansum) | [mindspore.Tensor.nansum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nansum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.narrow](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.narrow) | [mindspore.Tensor.narrow](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.narrow.html) | 功能一致,参数名不同 | -| [torch.Tensor.ndim](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ndim) | [mindspore.Tensor.ndim](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ndim.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.ndimension](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ndimension) | [mindspore.Tensor.ndimension](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ndimension.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.ne](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ne) | [mindspore.Tensor.ne](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ne.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.neg](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.neg) | [mindspore.Tensor.neg](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.neg.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.negative](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.negative) | [mindspore.Tensor.negative](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.negative.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.nelement](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nelement) | [mindspore.Tensor.nelement](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nelement.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.new_ones](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.new_ones) | [mindspore.Tensor.new_ones](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.new_ones.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.new_zeros](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.new_zeros) | [mindspore.Tensor.new_zeros](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.new_zeros.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.nextafter](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nextafter) | [mindspore.Tensor.nextafter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nextafter.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.norm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.norm) | [mindspore.Tensor.norm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.norm.html) | torch.Tensor.norm即将弃用,mindspore.Tensor.norm对标torch.linalg.norm,功能完全一致 | -| [torch.Tensor.nonzero](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.nonzero) | [mindspore.Tensor.nonzero](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nonzero.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.not_equal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.not_equal) | [mindspore.Tensor.not_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.not_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.numel](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.numel) | [mindspore.Tensor.numel](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.numel.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.numpy](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.numpy) | [mindspore.Tensor.asnumpy](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.asnumpy.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.orgqr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.orgqr) | [mindspore.Tensor.orgqr](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.orgqr.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.ormqr](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ormqr) | [mindspore.Tensor.ormqr](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ormqr.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.outer](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.outer) | [mindspore.Tensor.outer](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.outer.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.permute](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.permute) | [mindspore.Tensor.permute](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.permute.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.pow](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.pow) | [mindspore.Tensor.pow](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.pow.html) | 功能一致,参数名不同| -| [torch.Tensor.prod](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.prod) | [mindspore.Tensor.prod](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.prod.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/prod.html) | -| [torch.Tensor.ravel](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.ravel) | [mindspore.Tensor.ravel](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ravel.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.real](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.real) | [mindspore.Tensor.real](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.real.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.reciprocal](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.reciprocal) | [mindspore.Tensor.reciprocal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.reciprocal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.remainder](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.remainder) | [mindspore.Tensor.remainder](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.remainder.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.renorm](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.renorm) | [mindspore.Tensor.renorm](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.renorm.html) | [功能一致,参数数据类型不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/renorm.html) | -| [torch.Tensor.rad2deg](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.rad2deg) | [mindspore.Tensor.rad2deg](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.rad2deg.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.repeat](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.repeat) | [mindspore.Tensor.tile](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tile.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/tensor_repeat.html) | -| [torch.Tensor.repeat_interleave](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.repeat_interleave) | [mindspore.Tensor.repeat_interleave](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.repeat_interleave.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.reshape](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.reshape) | [mindspore.Tensor.reshape](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.reshape.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.reshape_as](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.reshape_as) | [mindspore.Tensor.reshape_as](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.reshape_as.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.round](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.round)| [mindspore.Tensor.round](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.round.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.roll](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.roll) | [mindspore.Tensor.roll](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.roll.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.rot90](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.rot90) | [mindspore.Tensor.rot90](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.rot90.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.rsqrt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.rsqrt) | [mindspore.Tensor.rsqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.rsqrt.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.scatter_](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.scatter_) | [mindspore.ops.tensor_scatter_elements](https://www.mindspore.cn/docs/zh-CN/master/api_python/ops/mindspore.ops.tensor_scatter_elements.html) |[差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/tensor_scatter_elements.html) | -| [torch.Tensor.sum_to_size](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sum_to_size) | [mindspore.Tensor.sum_to_size](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sum_to_size.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.scatter](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.scatter) | [mindspore.Tensor.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.scatter.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/scatter.html) | -| [torch.Tensor.sgn](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sgn) | [mindspore.Tensor.sgn](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sgn.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.shape](https://pytorch.org/docs/2.1/generated/torch.Tensor.shape.html#torch.Tensor.shape) | [mindspore.Tensor.shape](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.shape.html#mindspore.Tensor.shape)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.short](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.short) | [mindspore.Tensor.short](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.short.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.sigmoid](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sigmoid) | [mindspore.Tensor.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.sign](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sign) | [mindspore.Tensor.sign](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sign.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.signbit](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.signbit) | [mindspore.Tensor.signbit](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.signbit.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.sin](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sin)| [mindspore.Tensor.sin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sin.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.sinc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sinc)| [mindspore.Tensor.sinc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sinc.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.sinh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sinh)| [mindspore.Tensor.sinh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sinh.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.size](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.size) | [mindspore.Tensor.shape](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.shape.html#mindspore.Tensor.shape) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/shape.html) | -| [torch.Tensor.slogdet](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.slogdet) | [mindspore.Tensor.slogdet](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.slogdet.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.sort](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sort) | [mindspore.Tensor.sort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sort.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.split](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.split) | [mindspore.Tensor.split](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.split.html) | 功能一致,参数名不同| -| [torch.Tensor.sqrt](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sqrt) | [mindspore.Tensor.sqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sqrt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.square](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.square)| [mindspore.Tensor.square](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.square.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.squeeze](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.squeeze) | [mindspore.Tensor.squeeze](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.squeeze.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.std](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.std) | [mindspore.Tensor.std](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.std.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/std.html) | -| [torch.Tensor.storage_offset](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.storage_offset) | [mindspore.Tensor.storage_offset](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.storage_offset.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.stride](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.stride) | [mindspore.Tensor.stride](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.stride.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.sub](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sub) | [mindspore.Tensor.subtract](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.subtract.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.subtract](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.subtract) | [mindspore.Tensor.subtract](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.subtract.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.sum](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.sum) | [mindspore.Tensor.sum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sum.html#mindspore.Tensor.sum) | [功能一致,参数个数或顺序不一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/TensorSum.html) | -| [torch.Tensor.svd](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.svd) | [mindspore.Tensor.svd](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.svd.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/svd.html) | -| [torch.Tensor.swapaxes](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.swapaxes) | [mindspore.Tensor.swapaxes](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.swapdims](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.swapdims) | [mindspore.Tensor.swapdims](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.swapdims.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.T](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.T) | [mindspore.Tensor.T](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.T.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.t](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.t) | [mindspore.Tensor.t](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.t.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.take](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.take) | [mindspore.Tensor.take](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.take.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/take.html) | -| [torch.Tensor.tan](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tan)| [mindspore.Tensor.tan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tan.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.tanh](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tanh) | [mindspore.Tensor.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.trace](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.trace) | [mindspore.Tensor.trace](https://mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.trace.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.transpose](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.transpose) | [mindspore.Tensor.swapaxes](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.tile](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tile) | [mindspore.Tensor.tile](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tile.html) | 功能一致,参数名不同 | -| [torch.Tensor.to](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.to)| [mindspore.Tensor.to](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.to.html)| [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/to.html) | -| [torch.Tensor.topk](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.topk)| [mindspore.Tensor.topk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.topk.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.triu](https://pytorch.org/docs/1.8.1/tensors.html?#torch.Tensor.triu) | [mindspore.Tensor.triu](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.triu.html) | 功能一致,参数名不同| -| [torch.Tensor.tril](https://pytorch.org/docs/1.8.1/tensors.html?highlight=tril#torch.Tensor.tril) | [mindspore.Tensor.tril](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tril.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.tensor_split](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.tensor_split) | [mindspore.Tensor.tensor_split](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tensor_split.html) |功能一致,参数名不同| -| [torch.Tensor.true_divide](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.true_divide) | [mindspore.Tensor.true_divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.true_divide.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.trunc](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.trunc) | [mindspore.Tensor.trunc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.trunc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.unbind](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.unbind) | [mindspore.Tensor.unbind](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.unbind.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.unique_consecutive](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.unique_consecutive) | [mindspore.Tensor.unique_consecutive](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.unique_consecutive.html) | 功能一致,参数名不同 | -| [torch.Tensor.unsqueeze](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.unsqueeze) | [mindspore.Tensor.unsqueeze](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.unsqueeze.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| -| [torch.Tensor.var](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.var) | [mindspore.Tensor.var](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.var.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/var.html) | -| [torch.Tensor.view](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.view) | [mindspore.Tensor.view](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.view.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.view_as](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.view_as) | [mindspore.Tensor.view_as](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.view_as.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.where](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.where) | [mindspore.Tensor.where](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.where.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | -| [torch.Tensor.xlogy](https://pytorch.org/docs/1.8.1/tensors.html#torch.Tensor.xlogy) | [mindspore.Tensor.xlogy](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.xlogy.html) | 功能一致,参数名不同| - -| PyTorch 1.12 APIs | MindSpore APIs | 说明 | +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | |--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------| -| [torch.Tensor.hsplit](https://pytorch.org/docs/1.12/generated/torch.Tensor.hsplit.html) | [mindspore.Tensor.hsplit](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.hsplit.html) | 功能一致,参数名不同| -| [torch.Tensor.vsplit](https://pytorch.org/docs/1.12/generated/torch.Tensor.vsplit.html) | [mindspore.Tensor.vsplit](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.vsplit.html) | 功能一致,参数名不同| +| [torch.Tensor.abs](https://pytorch.org/docs/2.1/generated/torch.Tensor.abs.html) | [mindspore.Tensor.abs](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.abs.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.absolute](https://pytorch.org/docs/2.1/generated/torch.Tensor.absolute.html) | [mindspore.Tensor.absolute](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.absolute.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.add](https://pytorch.org/docs/2.1/generated/torch.Tensor.add.html)| [mindspore.Tensor.add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.add.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.all](https://pytorch.org/docs/2.1/generated/torch.Tensor.all.html) | [mindspore.Tensor.all](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.all.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.any](https://pytorch.org/docs/2.1/generated/torch.Tensor.any.html) | [mindspore.Tensor.any](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.any.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.argmax](https://pytorch.org/docs/2.1/generated/torch.Tensor.argmax.html) | [mindspore.Tensor.argmax](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.argmax.html#mindspore.Tensor.argmax) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.arctan2](https://pytorch.org/docs/2.1/generated/torch.Tensor.arctan2.html) | [mindspore.Tensor.arctan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.arctan2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.argmin](https://pytorch.org/docs/2.1/generated/torch.Tensor.argmin.html) | [mindspore.Tensor.argmin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.argmin.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.atan2](https://pytorch.org/docs/2.1/generated/torch.Tensor.atan2.html) | [mindspore.Tensor.atan2](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.atan2.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.bool](https://pytorch.org/docs/2.1/generated/torch.Tensor.bool.html)| [mindspore.Tensor.bool](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.bool.html)| [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.ceil](https://pytorch.org/docs/2.1/generated/torch.Tensor.ceil.html) | [mindspore.Tensor.ceil](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ceil.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.chunk](https://pytorch.org/docs/2.1/generated/torch.Tensor.chunk.html) | [mindspore.Tensor.chunk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.chunk.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.clamp](https://pytorch.org/docs/2.1/generated/torch.Tensor.clamp.html) | [mindspore.Tensor.clamp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.clamp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.clip](https://pytorch.org/docs/2.1/generated/torch.Tensor.clip.html) | [mindspore.Tensor.clip](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.clip.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.cos](https://pytorch.org/docs/2.1/generated/torch.Tensor.cos.html) | [mindspore.Tensor.cos](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cos.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.cumsum](https://pytorch.org/docs/2.1/generated/torch.Tensor.cumsum.html) | [mindspore.Tensor.cumsum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.cumsum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.div](https://pytorch.org/docs/2.1/generated/torch.Tensor.div.html) | [mindspore.Tensor.div](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.div.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.divide](https://pytorch.org/docs/2.1/generated/torch.Tensor.divide.html) | [mindspore.Tensor.divide](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.divide.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.eq](https://pytorch.org/docs/2.1/generated/torch.Tensor.eq.html) | [mindspore.Tensor.eq](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.eq.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.erf](https://pytorch.org/docs/2.1/generated/torch.Tensor.erf.html) | [mindspore.Tensor.erf](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.erf.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.exp](https://pytorch.org/docs/2.1/generated/torch.Tensor.exp.html) | [mindspore.Tensor.exp](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.exp.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.expand_as](https://pytorch.org/docs/2.1/generated/torch.Tensor.expand_as.html) | [mindspore.Tensor.expand_as](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.expand_as.html#mindspore.Tensor.expand_as) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.flatten](https://pytorch.org/docs/2.1/generated/torch.Tensor.flatten.html) | [mindspore.Tensor.flatten](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.flatten.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.float](https://pytorch.org/docs/2.1/generated/torch.Tensor.float.html) | [mindspore.Tensor.float](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.float.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.floor](https://pytorch.org/docs/2.1/generated/torch.Tensor.floor.html) | [mindspore.Tensor.floor](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.floor.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.gather](https://pytorch.org/docs/2.1/generated/torch.Tensor.gather.html) | [mindspore.Tensor.gather](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.gather.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.greater](https://pytorch.org/docs/2.1/generated/torch.Tensor.greater.html) | [mindspore.Tensor.greater](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.greater.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.gt](https://pytorch.org/docs/2.1/generated/torch.Tensor.gt.html) | [mindspore.Tensor.gt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.gt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.half](https://pytorch.org/docs/2.1/generated/torch.Tensor.half.html) | [mindspore.Tensor.half](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.half.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.index_select](https://pytorch.org/docs/2.1/generated/torch.Tensor.index_select.html) | [mindspore.Tensor.index_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.index_select.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.int](https://pytorch.org/docs/2.1/generated/torch.Tensor.int.html) | [mindspore.Tensor.int](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.int.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.isfinite](https://pytorch.org/docs/2.1/generated/torch.Tensor.isfinite.html) | [mindspore.Tensor.isfinite](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isfinite.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.isnan](https://pytorch.org/docs/2.1/generated/torch.Tensor.isnan.html) | [mindspore.Tensor.isnan](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.isnan.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.item](https://pytorch.org/docs/2.1/generated/torch.Tensor.item.html) | [mindspore.Tensor.item](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.item.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.le](https://pytorch.org/docs/2.1/generated/torch.Tensor.le.html) | [mindspore.Tensor.le](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.le.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.less](https://pytorch.org/docs/2.1/generated/torch.Tensor.less.html) | [mindspore.Tensor.less](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.less.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.less_equal](https://pytorch.org/docs/2.1/generated/torch.Tensor.less_equal.html) | [mindspore.Tensor.less_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.less_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.log](https://pytorch.org/docs/2.1/generated/torch.Tensor.log.html) | [mindspore.Tensor.log](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.log.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.logical_and](https://pytorch.org/docs/2.1/generated/torch.Tensor.logical_and.html) | [mindspore.Tensor.logical_and](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_and.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.logical_not](https://pytorch.org/docs/2.1/generated/torch.Tensor.logical_not.html) | [mindspore.Tensor.logical_not](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_not.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.logical_or](https://pytorch.org/docs/2.1/generated/torch.Tensor.logical_or.html) | [mindspore.Tensor.logical_or](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.logical_or.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.long](https://pytorch.org/docs/2.1/generated/torch.Tensor.long.html) | [mindspore.Tensor.long](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.long.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.lt](https://pytorch.org/docs/2.1/generated/torch.Tensor.lt.html) | [mindspore.Tensor.lt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.lt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.masked_fill](https://pytorch.org/docs/2.1/generated/torch.Tensor.masked_fill.html) | [mindspore.Tensor.masked_fill](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_fill.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.masked_select](https://pytorch.org/docs/2.1/generated/torch.Tensor.masked_select.html) | [mindspore.Tensor.masked_select](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.masked_select.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.matmul](https://pytorch.org/docs/2.1/generated/torch.Tensor.matmul.html) | [mindspore.Tensor.matmul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.matmul.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.max](https://pytorch.org/docs/2.1/generated/torch.Tensor.max.html) | [mindspore.Tensor.max](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.max.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.maximum](https://pytorch.org/docs/2.1/generated/torch.Tensor.maximum.html) | [mindspore.Tensor.maximum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.maximum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.mean](https://pytorch.org/docs/2.1/generated/torch.Tensor.mean.html) | [mindspore.Tensor.mean](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mean.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.min](https://pytorch.org/docs/2.1/generated/torch.Tensor.min.html) | [mindspore.Tensor.min](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.min.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.minimum](https://pytorch.org/docs/2.1/generated/torch.Tensor.minimum.html) | [mindspore.Tensor.minimum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.minimum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.mul](https://pytorch.org/docs/2.1/generated/torch.Tensor.mul.html) | [mindspore.Tensor.mul](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.mul.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.nan_to_num](https://pytorch.org/docs/2.1/generated/torch.Tensor.nan_to_num.html) | [mindspore.Tensor.nan_to_num](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.nan_to_num.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.ne](https://pytorch.org/docs/2.1/generated/torch.Tensor.ne.html) | [mindspore.Tensor.ne](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.ne.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.neg](https://pytorch.org/docs/2.1/generated/torch.Tensor.neg.html) | [mindspore.Tensor.neg](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.neg.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.negative](https://pytorch.org/docs/2.1/generated/torch.Tensor.negative.html) | [mindspore.Tensor.negative](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.negative.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.not_equal](https://pytorch.org/docs/2.1/generated/torch.Tensor.not_equal.html) | [mindspore.Tensor.not_equal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.not_equal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.pow](https://pytorch.org/docs/2.1/generated/torch.Tensor.pow.html) | [mindspore.Tensor.pow](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.pow.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.prod](https://pytorch.org/docs/2.1/generated/torch.Tensor.prod.html) | [mindspore.Tensor.prod](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.prod.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.reciprocal](https://pytorch.org/docs/2.1/generated/torch.Tensor.reciprocal.html) | [mindspore.Tensor.reciprocal](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.reciprocal.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.remainder](https://pytorch.org/docs/2.1/generated/torch.Tensor.remainder.html) | [mindspore.Tensor.remainder](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.remainder.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.repeat_interleave](https://pytorch.org/docs/2.1/generated/torch.Tensor.repeat_interleave.html) | [mindspore.Tensor.repeat_interleave](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.repeat_interleave.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.reshape](https://pytorch.org/docs/2.1/generated/torch.Tensor.reshape.html) | [mindspore.Tensor.reshape](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.reshape.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.round](https://pytorch.org/docs/2.1/generated/torch.Tensor.round.html)| [mindspore.Tensor.round](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.round.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.rsqrt](https://pytorch.org/docs/2.1/generated/torch.Tensor.rsqrt.html) | [mindspore.Tensor.rsqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.rsqrt.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.scatter](https://pytorch.org/docs/2.1/generated/torch.Tensor.scatter.html) | [mindspore.Tensor.scatter](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.scatter.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.scatter_add](https://pytorch.org/docs/2.1/generated/torch.Tensor.scatter_add.html) | [mindspore.Tensor.scatter_add](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.scatter_add.html) |[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.sigmoid](https://pytorch.org/docs/2.1/generated/torch.Tensor.sigmoid.html) | [mindspore.Tensor.sigmoid](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sigmoid.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.sin](https://pytorch.org/docs/2.1/generated/torch.Tensor.sin.html)| [mindspore.Tensor.sin](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sin.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.sort](https://pytorch.org/docs/2.1/generated/torch.Tensor.sort.html) | [mindspore.Tensor.sort](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sort.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.split](https://pytorch.org/docs/2.1/generated/torch.Tensor.split.html) | [mindspore.Tensor.split](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.split.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.sqrt](https://pytorch.org/docs/2.1/generated/torch.Tensor.sqrt.html) | [mindspore.Tensor.sqrt](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sqrt.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.square](https://pytorch.org/docs/2.1/generated/torch.Tensor.square.html)| [mindspore.Tensor.square](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.square.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.sub](https://pytorch.org/docs/2.1/generated/torch.Tensor.sub.html) | [mindspore.Tensor.sub](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sub.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.sum](https://pytorch.org/docs/2.1/generated/torch.Tensor.sum.html) | [mindspore.Tensor.sum](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.sum.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.t](https://pytorch.org/docs/2.1/generated/torch.Tensor.t.html) | [mindspore.Tensor.t](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.t.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.tanh](https://pytorch.org/docs/2.1/generated/torch.Tensor.tanh.html) | [mindspore.Tensor.tanh](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tanh.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.tile](https://pytorch.org/docs/2.1/generated/torch.Tensor.tile.html) | [mindspore.Tensor.tile](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tile.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.topk](https://pytorch.org/docs/2.1/generated/torch.Tensor.topk.html)| [mindspore.Tensor.topk](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.topk.html)|[一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.tril](https://pytorch.org/docs/2.1/generated/torch.Tensor.tril.html) | [mindspore.Tensor.tril](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.tril.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.trunc](https://pytorch.org/docs/2.1/generated/torch.Tensor.trunc.html) | [mindspore.Tensor.trunc](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.trunc.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景)| +| [torch.Tensor.view_as](https://pytorch.org/docs/2.1/generated/torch.Tensor.view_as.html) | [mindspore.Tensor.view_as](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.view_as.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | +| [torch.Tensor.where](https://pytorch.org/docs/2.1/generated/torch.Tensor.where.html) | [mindspore.Tensor.where](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/Tensor/mindspore.Tensor.where.html) | [一致](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_api_mapping.html#api映射一致标准及例外场景) | ## torch.optim -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | +| PyTorch 2.1 APIs | MindSpore APIs | 说明 | | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | -| [torch.optim.Adadelta](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adadelta) | [mindspore.nn.Adadelta](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Adadelta.html) | 一致 | -| [torch.optim.Adagrad](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adagrad) | [mindspore.nn.Adagrad](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Adagrad.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Adagrad.html) | -| [torch.optim.Adam](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adam) | [mindspore.nn.Adam](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Adam.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Adam.html) | -| [torch.optim.AdaMax](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.AdaMax) | [mindspore.nn.AdaMax](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdaMax.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AdaMax.html) | -| [torch.optim.AdamW](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.AdamW) | [mindspore.nn.AdamWeightDecay](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.AdamWeightDecay.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/AdamWeightDecay.html) | -| [torch.optim.ASGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.ASGD) | [mindspore.nn.ASGD](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.ASGD.html) | 一致 | -| [torch.optim.Optimizer](https://pytorch.org/docs/1.8.0/optim.html#torch.optim.Optimizer) | [mindspore.nn.Optimizer](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Optimizer.html#mindspore.nn.Optimizer) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Optimizer.html) | -| [torch.optim.SparseAdam](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.SparseAdam) | [mindspore.nn.LazyAdam](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.LazyAdam.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/SparseAdam.html) | -| [torch.optim.RMSProp](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.RMSProp) | [mindspore.nn.RMSProp](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.RMSProp.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/RMSProp.html) | -| [torch.optim.Rprop](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Rprop) | [mindspore.nn.Rprop](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.Rprop.html) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/Rprop.html) | -| [torch.optim.SGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.SGD) | [mindspore.nn.SGD](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.SGD.html) | 一致 | -| [torch.optim.lr_scheduler.CosineAnnealingLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CosineAnnealingLR) | [mindspore.nn.cosine_decay_lr](https://www.mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.cosine_decay_lr.html#mindspore.nn.cosine_decay_lr) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/CosineDecayLr.html) | -| [torch.optim.lr_scheduler.ExponentialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ExponentialLR) | [mindspore.nn.exponential_decay_lr](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.exponential_decay_lr.html#mindspore.nn.exponential_decay_lr) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/ExponentialDecayLR.html) | -| [torch.optim.lr_scheduler.MultiStepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.MultiStepLR) | [mindspore.nn.piecewise_constant_lr](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.piecewise_constant_lr.html#mindspore.nn.piecewise_constant_lr) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/PiecewiseConstantLR.html) | -| [torch.optim.lr_scheduler.StepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.StepLR) | [mindspore.nn.piecewise_constant_lr](https://mindspore.cn/docs/zh-CN/master/api_python/nn/mindspore.nn.piecewise_constant_lr.html#mindspore.nn.piecewise_constant_lr) | [差异对比](https://www.mindspore.cn/docs/zh-CN/master/note/api_mapping/pytorch_diff/PiecewiseConstantLR.html) | - -## torch.optim - -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.optim.Adadelta](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adadelta) | [mindspore.experimental.optim.Adadelta](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.Adadelta.html) | 一致 | -| [torch.optim.Adagrad](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adagrad) | [mindspore.experimental.optim.Adagrad](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.Adagrad.html) | 一致 | -| [torch.optim.Adam](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adam) | [mindspore.experimental.optim.Adam](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.Adam.html) | 一致 | -| [torch.optim.Adamax](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Adamax) | [mindspore.experimental.optim.Adamax](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.Adamax.html) | 一致 | -| [torch.optim.AdamW](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.AdamW) | [mindspore.experimental.optim.AdamW](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.AdamW.html) | 一致 | -| [torch.optim.ASGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.ASGD) | [mindspore.experimental.optim.ASGD](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.ASGD.html) | 一致 | -| [torch.optim.NAdam](https://pytorch.org/docs/1.12/generated/torch.optim.NAdam.html) | [mindspore.experimental.optim.NAdam](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.NAdam.html) | 一致 | -| [torch.optim.RAdam](https://pytorch.org/docs/1.12/generated/torch.optim.RAdam.html) | [mindspore.experimental.optim.RAdam](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.RAdam.html) | 一致 | -| [torch.optim.RMSprop](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.RMSprop) | [mindspore.experimental.optim.RMSprop](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.RMSprop.html) | 一致 | -| [torch.optim.Rprop](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.Rprop) | [mindspore.experimental.optim.Rprop](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.Rprop.html) | 一致 | -| [torch.optim.SGD](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.SGD) | [mindspore.experimental.optim.SGD](https://mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.SGD.html) | 一致 | - -## torch.optim.lr_scheduler - -| PyTorch 1.8.1 APIs | MindSpore APIs | 说明 | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| [torch.optim.lr_scheduler.LRScheduler](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.LRScheduler) | [mindspore.experimental.optim.lr_scheduler.LRScheduler](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.LRScheduler.html#mindspore.experimental.optim.lr_scheduler.LRScheduler) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.ConstantLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ConstantLR) | [mindspore.experimental.optim.lr_scheduler.ConstantLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.ConstantLR.html#mindspore.experimental.optim.lr_scheduler.ConstantLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.CosineAnnealingLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CosineAnnealingLR) | [mindspore.experimental.optim.lr_scheduler.CosineAnnealingLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.CosineAnnealingLR.html#mindspore.experimental.optim.lr_scheduler.CosineAnnealingLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.CosineAnnealingWarmRestarts](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CosineAnnealingWarmRestarts) | [mindspore.experimental.optim.lr_scheduler.CosineAnnealingWarmRestarts](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.CosineAnnealingWarmRestarts.html#mindspore.experimental.optim.lr_scheduler.CosineAnnealingWarmRestarts) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.CyclicLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.CyclicLR) | [mindspore.experimental.optim.lr_scheduler.CyclicLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.CyclicLR.html#mindspore.experimental.optim.lr_scheduler.CyclicLR) | 无 `verbose` 和 `momentum` 相关入参,其余功能一致 | -| [torch.optim.lr_scheduler.ExponentialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ExponentialLR) | [mindspore.experimental.optim.lr_scheduler.ExponentialLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.ExponentialLR.html#mindspore.experimental.optim.lr_scheduler.ExponentialLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.LambdaLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.LambdaLR) | [mindspore.experimental.optim.lr_scheduler.LambdaLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.LambdaLR.html#mindspore.experimental.optim.lr_scheduler.LambdaLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.LinearLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.LinearLR) | [mindspore.experimental.optim.lr_scheduler.LinearLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.LinearLR.html#mindspore.experimental.optim.lr_scheduler.LinearLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.MultiplicativeLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.MultiplicativeLR) | [mindspore.experimental.optim.lr_scheduler.MultiplicativeLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.MultiplicativeLR.html#mindspore.experimental.optim.lr_scheduler.MultiplicativeLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.MultiStepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.MultiStepLR) | [mindspore.experimental.optim.lr_scheduler.MultiStepLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.MultiStepLR.html#mindspore.experimental.optim.lr_scheduler.MultiStepLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.PolynomialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.PolynomialLR) | [mindspore.experimental.optim.lr_scheduler.PolynomialLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.PolynomialLR.html#mindspore.experimental.optim.lr_scheduler.PolynomialLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.ReduceLROnPlateau](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.ReduceLROnPlateau) | [mindspore.experimental.optim.lr_scheduler.ReduceLROnPlateau](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.ReduceLROnPlateau.html#mindspore.experimental.optim.lr_scheduler.ReduceLROnPlateau) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.SequentialLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.SequentialLR) | [mindspore.experimental.optim.lr_scheduler.SequentialLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.SequentialLR.html#mindspore.experimental.optim.lr_scheduler.SequentialLR) | 无 `verbose` 入参,其余功能一致 | -| [torch.optim.lr_scheduler.StepLR](https://pytorch.org/docs/1.8.1/optim.html#torch.optim.lr_scheduler.StepLR) | [mindspore.experimental.optim.lr_scheduler.StepLR](https://www.mindspore.cn/docs/zh-CN/master/api_python/experimental/optim/mindspore.experimental.optim.lr_scheduler.StepLR.html#mindspore.experimental.optim.lr_scheduler.StepLR) | 无 `verbose` 入参,其余功能一致 | +| [torch.optim.Adam](https://pytorch.org/docs/2.1/optim.html#torch.optim.Adam) | [mindspore.mint.optim.Adam](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.optim.Adam.html) | 功能一致,参数不一致 | +| [torch.optim.AdamW](https://pytorch.org/docs/2.1/optim.html#torch.optim.AdamW) | [mindspore.mint.optim.AdamW](https://www.mindspore.cn/docs/zh-CN/master/api_python/mint/mindspore.mint.optim.AdamW.html) | 功能一致,参数不一致 | ## torch.utils