!33960 modify format

Merge pull request !33960 from 俞涵/code_docs_0506
This commit is contained in:
i-robot 2022-05-07 02:42:56 +00:00 committed by Gitee
commit d728f31cdb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -788,8 +788,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)

View File

@ -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)