commit
4bdb784035
|
@ -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)
|
||||||
|
|
||||||
从分类分布中抽取样本。
|
从分类分布中抽取样本。
|
||||||
|
|
||||||
|
|
|
@ -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的位置填充指定的值。
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue