From 1c155a93e85f1f9a1f2bb3a47fdf30a28fa2897d Mon Sep 17 00:00:00 2001 From: huodagu Date: Fri, 6 May 2022 17:06:43 +0800 Subject: [PATCH] modify format --- docs/api/api_python/mindspore/mindspore.Tensor.rst | 4 ++-- mindspore/python/mindspore/ops/operations/nn_ops.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/api_python/mindspore/mindspore.Tensor.rst b/docs/api/api_python/mindspore/mindspore.Tensor.rst index 8413fa7f413..05f6b82783f 100644 --- a/docs/api/api_python/mindspore/mindspore.Tensor.rst +++ b/docs/api/api_python/mindspore/mindspore.Tensor.rst @@ -723,8 +723,8 @@ mindspore.Tensor **异常:** - **TypeError** - `indices` 的数据类型不是int32,也不是int64。 - **ValueError** - Tensor的shape长度小于 `indices` 的shape的最后一个维度。 + - **TypeError** - `indices` 的数据类型不是int32,也不是int64。 + - **ValueError** - Tensor的shape长度小于 `indices` 的shape的最后一个维度。 .. py:method:: to_tensor(slice_index=None, shape=None, opt_shard_group=None) diff --git a/mindspore/python/mindspore/ops/operations/nn_ops.py b/mindspore/python/mindspore/ops/operations/nn_ops.py index f4dda7b5f76..649be2a404d 100644 --- a/mindspore/python/mindspore/ops/operations/nn_ops.py +++ b/mindspore/python/mindspore/ops/operations/nn_ops.py @@ -447,7 +447,7 @@ class Softsign(Primitive): TypeError: If dtype of `input_x` is neither float16 nor float32. Supported Platforms: - ``Ascend`` `CPU`` + ``Ascend`` ``CPU`` Examples: >>> input_x = Tensor(np.array([0, -1, 2, 30, -30]), mindspore.float32)