modify format

This commit is contained in:
huodagu 2023-01-13 16:37:01 +08:00
parent d388033821
commit 7ea5ac1b62
4 changed files with 7 additions and 6 deletions

View File

@ -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之间的相似性。

View File

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

View File

@ -1,7 +1,7 @@
mindspore.ops.ravel
======================
.. py:method:: mindspore.ops.ravel(x)
.. py:function:: mindspore.ops.ravel(x)
返回一个展开的一维Tensor。

View File

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