!33701 modify format

Merge pull request !33701 from 俞涵/code_docs_0428
This commit is contained in:
i-robot 2022-04-28 07:44:53 +00:00 committed by Gitee
commit 6cc2441692
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
7 changed files with 10 additions and 10 deletions

View File

@ -87,7 +87,7 @@ MindSpore context用于配置当前执行环境包括执行模式、执行
- **save_dump_path** (str) - 此参数已弃用,将在下一版本中删除。
- **enable_profiling** (bool) - 此参数已弃用将在下一版本中删除。请使用mindspore.profiler.Profiler API。
- **profiling_options** (str) - 此参数已弃用将在下一版本中删除。请使用mindspore.profiler.Profiler API。
- **print_file_path** (str):该路径用于保存打印数据。使用时 :class:`mindspore.ops.print` 可以打印输入的张量或字符串信息,使用方法 :func:`mindspore.parse_print` 解析保存的文件。如果设置了此参数,打印数据保存到文件,未设置将显示到屏幕。如果保存的文件已经存在,则将添加时间戳后缀到文件中。将数据保存到文件解决了屏幕打印中的数据丢失问题, 如果未设置,将报告错误:"prompt to set the upper absolute path"。
- **print_file_path** (str):该路径用于保存打印数据。使用时 :class:`mindspore.ops.Print` 可以打印输入的张量或字符串信息,使用方法 :func:`mindspore.parse_print` 解析保存的文件。如果设置了此参数,打印数据保存到文件,未设置将显示到屏幕。如果保存的文件已经存在,则将添加时间戳后缀到文件中。将数据保存到文件解决了屏幕打印中的数据丢失问题, 如果未设置,将报告错误:"prompt to set the upper absolute path"。
- **env_config_path** (str) - 通过 `context.set_context(env_config_path="./mindspore_config.json")` 来设置MindSpore环境配置文件路径。
配置Running Data Recorder

View File

@ -4,7 +4,7 @@ mindspore.nn.F1
.. py:class:: mindspore.nn.F1
计算F1 score。F1是Fbeta的特殊情况即beta为1。
有关更多详细信息,请参阅类:class:`mindspore.nn.Fbeta`
有关更多详细信息,请参阅类 :class:`mindspore.nn.Fbeta`
.. math::
F_1=\frac{2\cdot true\_positive}{2\cdot true\_positive + false\_negative + false\_positive}

View File

@ -13,7 +13,7 @@ mindspore.nn.MatrixDiagPart
**输出:**
Tensorshape与输入`x`相同。shape必须为 :math:`x.shape[:-2]+[min(x.shape[-2:])]`
Tensorshape与输入 `x` 相同。shape必须为 :math:`x.shape[:-2]+[min(x.shape[-2:])]`
**异常:**

View File

@ -14,7 +14,7 @@ mindspore.nn.MultiClassDiceLoss
**输入:**
- **logits** (Tensor) - shape为 :math:`(N, C, *)` 的Tensor其中 :math:`*` 表示任意数量的附加维度。logits维度应大于1。数据类型必须为float16或float32。
-- **labels** (Tensor) - shape为 :math:`(N, C, *)` 的Tensor`logits` 的shape相同。标签维度应大于1。数据类型必须为float16或float32。
- **labels** (Tensor) - shape为 :math:`(N, C, *)` 的Tensor`logits` 的shape相同。标签维度应大于1。数据类型必须为float16或float32。
**输出:**
@ -26,4 +26,4 @@ mindspore.nn.MultiClassDiceLoss
- **TypeError** - `logits``labels` 的类型不是Tensor。
- **ValueError** - `logits``labels` 的维度小于2。
- **ValueError** - `weights` 的shape[0]和 `labels` 的shape[1]不相等。
- **ValueError** - `weights`是Tensor但其维度不是2。
- **ValueError** - `weights` 是Tensor但其维度不是2。

View File

@ -27,9 +27,9 @@ mindspore.nn.MultiFieldEmbeddingLookup
**输入:**
- **input_indices**(Tensor) - 指定输入Tensor元素的索引其shape为 :math:`(batch\_size, seq\_length)` 。数据类型为int32、int64。
- **input_values**(Tensor) - 指定 `input_indices` 元素的权重。将检索出的向量乘以 `input_values` 。其shape为 :math:`(batch\_size, seq\_length)` 。类型为float32。
- **field_ids**(Tensor)- 指定 `input_indices` 元素的字段ID其shape为 :math:`(batch\_size, seq\_length)` 。类型为int32。
- **input_indices** (Tensor) - 指定输入Tensor元素的索引其shape为 :math:`(batch\_size, seq\_length)` 。数据类型为int32、int64。
- **input_values** (Tensor) - 指定 `input_indices` 元素的权重。将检索出的向量乘以 `input_values` 。其shape为 :math:`(batch\_size, seq\_length)` 。类型为float32。
- **field_ids** (Tensor)- 指定 `input_indices` 元素的字段ID其shape为 :math:`(batch\_size, seq\_length)` 。类型为int32。
**输出:**

View File

@ -1,5 +1,5 @@
mindspore.ops.index_add
=================
=======================
.. py:function:: mindspore.ops.index_add(x, indices, y, axis, use_lock=True, check_index_bound=True)

View File

@ -1,5 +1,5 @@
mindspore.ops.tuple_to_array
===========================
============================
.. py:function:: mindspore.ops.tuple_to_array(input_x)