forked from mindspore-Ecosystem/mindspore
modify format
This commit is contained in:
parent
d388033821
commit
7ea5ac1b62
|
@ -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之间的相似性。
|
||||
|
|
@ -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。
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
mindspore.ops.ravel
|
||||
======================
|
||||
|
||||
.. py:method:: mindspore.ops.ravel(x)
|
||||
.. py:function:: mindspore.ops.ravel(x)
|
||||
|
||||
返回一个展开的一维Tensor。
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue