diff --git a/docs/api/api_python/ops/mindspore.ops.cosine_embedding_loss.rst b/docs/api/api_python/ops/mindspore.ops.func_cosine_embedding_loss.rst similarity index 93% rename from docs/api/api_python/ops/mindspore.ops.cosine_embedding_loss.rst rename to docs/api/api_python/ops/mindspore.ops.func_cosine_embedding_loss.rst index c25595530fe..9df2ef8a8f7 100644 --- a/docs/api/api_python/ops/mindspore.ops.cosine_embedding_loss.rst +++ b/docs/api/api_python/ops/mindspore.ops.func_cosine_embedding_loss.rst @@ -1,7 +1,7 @@ mindspore.ops.cosine_embedding_loss =================================== -.. py:class:: mindspore.ops.cosine_embedding_loss(input1, input2, target, margin=0.0, reduction="mean") +.. py:function:: mindspore.ops.cosine_embedding_loss(input1, input2, target, margin=0.0, reduction="mean") 余弦相似度损失函数,用于测量两个Tensor之间的相似性。 diff --git a/docs/api/api_python/ops/mindspore.ops.func_full_like.rst b/docs/api/api_python/ops/mindspore.ops.func_full_like.rst index 983cead4c20..747871258b6 100644 --- a/docs/api/api_python/ops/mindspore.ops.func_full_like.rst +++ b/docs/api/api_python/ops/mindspore.ops.func_full_like.rst @@ -10,7 +10,7 @@ mindspore.ops.full_like - **fill_value** (number.Number) - 用来填充输出Tensor的值。 关键字参数: - - **dtype** (mindspore.dtype, 可选) - 指定输出Tensor的数据类型。数据类型只支持 `bool_` 和 `number ` ,更多细节详见 :class:`mindspore.dtype` 。默认值:None。 + - **dtype** (mindspore.dtype, 可选) - 指定输出Tensor的数据类型。数据类型只支持 `bool_` 和 `number` ,更多细节详见 :class:`mindspore.dtype` 。默认值:None。 返回: Tensor。 diff --git a/docs/api/api_python/ops/mindspore.ops.func_ravel.rst b/docs/api/api_python/ops/mindspore.ops.func_ravel.rst index c56a20506da..7bcd3c66808 100644 --- a/docs/api/api_python/ops/mindspore.ops.func_ravel.rst +++ b/docs/api/api_python/ops/mindspore.ops.func_ravel.rst @@ -1,7 +1,7 @@ mindspore.ops.ravel ====================== -.. py:method:: mindspore.ops.ravel(x) +.. py:function:: mindspore.ops.ravel(x) 返回一个展开的一维Tensor。 diff --git a/mindspore/python/mindspore/ops/operations/sparse_ops.py b/mindspore/python/mindspore/ops/operations/sparse_ops.py index d814f8133b4..6ae59137433 100644 --- a/mindspore/python/mindspore/ops/operations/sparse_ops.py +++ b/mindspore/python/mindspore/ops/operations/sparse_ops.py @@ -209,9 +209,10 @@ class SparseSlice(Primitive): Outputs: A `SparseTensor` objects resulting from splicing. - - *y_indices: A Tensor of type int64. - - *y_values: A Tensor. Has the same type as `values`. - - *y_shape: A Tensor of type int64. Has the same size as `size`. + + - \*y_indices: A Tensor of type int64. + - \*y_values: A Tensor. Has the same type as `values`. + - \*y_shape: A Tensor of type int64. Has the same size as `size`. Raises: TypeError: If the dtype of `indices`, `shape`, `start`, `size` are not int64.