diff --git a/docs/api/api_python/mindspore.ops.rst b/docs/api/api_python/mindspore.ops.rst index f4a8699ee97..6a8f7cfc7e9 100644 --- a/docs/api/api_python/mindspore.ops.rst +++ b/docs/api/api_python/mindspore.ops.rst @@ -473,6 +473,7 @@ Array操作 mindspore.ops.gather_elements mindspore.ops.gather_nd mindspore.ops.hsplit + mindspore.ops.index_add mindspore.ops.index_fill mindspore.ops.index_select mindspore.ops.inplace_add diff --git a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.fills.rst b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.fills.rst deleted file mode 100644 index 9d4ce0c03b4..00000000000 --- a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.fills.rst +++ /dev/null @@ -1,6 +0,0 @@ -mindspore.Tensor.fills -====================== - -.. py:method:: mindspore.Tensor.fills(value) - - 详情请参考 :func:`mindspore.ops.fills`。 diff --git a/docs/api/api_python/mindspore/mindspore.QuantDtype.rst b/docs/api/api_python/mindspore/mindspore.QuantDtype.rst index 98c96950e41..730a5ac9016 100644 --- a/docs/api/api_python/mindspore/mindspore.QuantDtype.rst +++ b/docs/api/api_python/mindspore/mindspore.QuantDtype.rst @@ -11,7 +11,7 @@ mindspore.QuantDtype from mindspore import QuantDtype - .. py:method:: value(self) + .. py:method:: value() 获取当前 `QuantDtype` 的值。 diff --git a/docs/api/api_python/mindspore/mindspore.Tensor.rst b/docs/api/api_python/mindspore/mindspore.Tensor.rst index 0c84402b0ca..beeee756c60 100644 --- a/docs/api/api_python/mindspore/mindspore.Tensor.rst +++ b/docs/api/api_python/mindspore/mindspore.Tensor.rst @@ -109,7 +109,6 @@ mindspore.Tensor mindspore.Tensor.expand_dims mindspore.Tensor.expm1 mindspore.Tensor.fill - mindspore.Tensor.fills mindspore.Tensor.flatten mindspore.Tensor.flip mindspore.Tensor.fliplr diff --git a/docs/api/api_python/ops/mindspore.ops.func_fills.rst b/docs/api/api_python/ops/mindspore.ops.func_fills.rst deleted file mode 100644 index 2c18a23ade3..00000000000 --- a/docs/api/api_python/ops/mindspore.ops.func_fills.rst +++ /dev/null @@ -1,19 +0,0 @@ -mindspore.ops.fills -=================== - -.. py:function:: mindspore.ops.fills(x, value) - - 创建一个与输入Tensor具有相同shape和dtype的Tensor,并用指定值填充。 - - 参数: - - **x** (Tensor) - 输入Tensor,用来指定输出Tensor的shape和dtype。数据类型为int8,int16,int32,float16,float32。 - - **value** (Union[int, float, Tensor]) - 用来填充输出Tensor的值。数据类型为int,float或零维Tensor。 - - 返回: - Tensor,与输入数据 `x` 具有相同的shape和dtype。 - - 异常: - - **TypeError** - `x` 不是Tensor。 - - **TypeError** - `value` 具有前面未指定的类型。 - - **RuntimeError** - `value` 不能转换为与当前Tensor相同的类型。 - - **ValueError** - `value` 是非零维Tensor。 diff --git a/docs/api/api_python/ops/mindspore.ops.func_topk.rst b/docs/api/api_python/ops/mindspore.ops.func_topk.rst index 56768ddf723..29bbab90b7a 100644 --- a/docs/api/api_python/ops/mindspore.ops.func_topk.rst +++ b/docs/api/api_python/ops/mindspore.ops.func_topk.rst @@ -1,7 +1,7 @@ mindspore.ops.topk =================== -.. py:function:: mindspore.ops.topk(input_x, k, dim=None, largest=True, sorted=True): +.. py:function:: mindspore.ops.topk(input_x, k, dim=None, largest=True, sorted=True) 沿给定维度查找 `k` 个最大或最小元素和对应的索引。 diff --git a/docs/api/api_python_en/Tensor_list.rst b/docs/api/api_python_en/Tensor_list.rst index e2583898aeb..a2d51b531d5 100644 --- a/docs/api/api_python_en/Tensor_list.rst +++ b/docs/api/api_python_en/Tensor_list.rst @@ -115,7 +115,6 @@ mindspore.Tensor.expand_dims mindspore.Tensor.expm1 mindspore.Tensor.fill - mindspore.Tensor.fills mindspore.Tensor.flatten mindspore.Tensor.flip mindspore.Tensor.fliplr diff --git a/docs/api/api_python_en/mindspore.ops.rst b/docs/api/api_python_en/mindspore.ops.rst index 4988179481f..2b21e57eb4c 100644 --- a/docs/api/api_python_en/mindspore.ops.rst +++ b/docs/api/api_python_en/mindspore.ops.rst @@ -473,6 +473,7 @@ Array Operation mindspore.ops.gather_elements mindspore.ops.gather_nd mindspore.ops.hsplit + mindspore.ops.index_add mindspore.ops.index_fill mindspore.ops.index_select mindspore.ops.inplace_add