From 5ef01a07c26a5bc7038b455a2dbcb1d40bf85ed6 Mon Sep 17 00:00:00 2001 From: huodagu Date: Fri, 3 Feb 2023 14:44:13 +0800 Subject: [PATCH] modify format --- docs/api/api_python/mindspore/Tensor/mindspore.Tensor.det.rst | 2 +- .../api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.rst | 2 +- mindspore/python/mindspore/common/tensor.py | 2 +- mindspore/python/mindspore/ops/operations/image_ops.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.det.rst b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.det.rst index 1a1d497f0ca..759c9071004 100644 --- a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.det.rst +++ b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.det.rst @@ -3,4 +3,4 @@ mindspore.Tensor.det .. py:method:: mindspore.Tensor.det() - :func:`mindspore.Tensor.matrix_determinant` 的别名。 \ No newline at end of file + 详情请参考 :func:`mindspore.ops.det`。 \ No newline at end of file diff --git a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.rst b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.rst index 9d67ed3159f..23a3cf5c707 100644 --- a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.rst +++ b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.swapaxes.rst @@ -3,4 +3,4 @@ mindspore.Tensor.swapaxes .. py:method:: mindspore.Tensor.swapaxes(axis1, axis2) - 详情请参考 :func:`mindspore.ops.swapaxes` 。 + 详情请参考 :func:`mindspore.ops.swapaxes`。 diff --git a/mindspore/python/mindspore/common/tensor.py b/mindspore/python/mindspore/common/tensor.py index 27aa98b683a..6869760aa49 100644 --- a/mindspore/python/mindspore/common/tensor.py +++ b/mindspore/python/mindspore/common/tensor.py @@ -2435,7 +2435,7 @@ class Tensor(Tensor_): def det(self): r""" - Refer to :func:`mindspore.ops.det`. + For details, please refer to :func:`mindspore.ops.det`. """ self._init_check() return tensor_operator_registry.get('det')(self) diff --git a/mindspore/python/mindspore/ops/operations/image_ops.py b/mindspore/python/mindspore/ops/operations/image_ops.py index d3f5f63f3c7..7bc79793707 100644 --- a/mindspore/python/mindspore/ops/operations/image_ops.py +++ b/mindspore/python/mindspore/ops/operations/image_ops.py @@ -643,7 +643,7 @@ class ResizeLinear1D(Primitive): This is an experimental feature and is subjected to change. Args: - coordinate_transformation_mode (string): Default is 'align_corners'. Describes how to transform the coordinate + coordinate_transformation_mode (str): Default is 'align_corners'. Describes how to transform the coordinate in the resized tensor to the coordinate in the original tensor. Other optional: 'half_pixel', 'asymmetric'. Inputs: