!37469 modify format

Merge pull request !37469 from 俞涵/code_docs_0629
This commit is contained in:
i-robot 2022-07-06 09:35:29 +00:00 committed by Gitee
commit 4bdb784035
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 8 deletions

View File

@ -1083,7 +1083,7 @@ mindspore.Tensor
- **TypeError** - `self` 不是Tensor或者 `axis``keepdims` 具有前面未指定的类型。 - **TypeError** - `self` 不是Tensor或者 `axis``keepdims` 具有前面未指定的类型。
.. py:method:: random_categorical(num_sample=None, seed=0, dtype=mstype.int64) .. py:method:: random_categorical(num_sample, seed=0, dtype=mstype.int64)
从分类分布中抽取样本。 从分类分布中抽取样本。

View File

@ -1,7 +1,7 @@
mindspore.ops.MaskedFill mindspore.ops.MaskedFill
========================= =========================
.. py:class:: mindspore.ops.MaskedFill(input_x, mask, value) .. py:class:: mindspore.ops.MaskedFill()
将掩码位置为True的位置填充指定的值。 将掩码位置为True的位置填充指定的值。

View File

@ -3369,7 +3369,6 @@ class Tensor(Tensor_):
Note: Note:
1. The value of `input_indices` must be in the range of `[0, input_param.shape[axis])`, the result 1. The value of `input_indices` must be in the range of `[0, input_param.shape[axis])`, the result
is undefined out of range. is undefined out of range.
2. The data type of `input_params` cannot be 2. The data type of `input_params` cannot be
`bool_ <https://www.mindspore.cn/docs/en/master/api_python/mindspore.html#mindspore.dtype>`_ on Ascend `bool_ <https://www.mindspore.cn/docs/en/master/api_python/mindspore.html#mindspore.dtype>`_ on Ascend
platform currently. platform currently.