!37965 modify format

Merge pull request !37965 from 俞涵/code_docs_0707
This commit is contained in:
i-robot 2022-07-14 01:54:11 +00:00 committed by Gitee
commit bd7d3e0765
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 4 additions and 4 deletions

View File

@ -686,7 +686,7 @@ mindspore.Tensor
Tensor是否已经初始化。
.. py:method:: index_fill(dim, index, value):
.. py:method:: index_fill(dim, index, value)
`index` 中给定的顺序选择索引,将输入 `value` 值填充到当前Tensor的所有 `dim` 维元素。

View File

@ -12,7 +12,7 @@ mindspore.ms_function
- **fn** (Function) - 要编译成图的Python函数。默认值None。
- **input_signature** (Tensor) - 用于表示输入参数的Tensor。Tensor的shape和dtype将作为函数的输入shape和dtype。默认值None。
- **hash_args** (Union[Object, List or Tuple of Objects]) - `fn` 里面用到的自由变量,比如外部函数或类对象,再次调用时若 `hash_args` 出现变化会触发重新编译。默认值None。
- **jit_config** (JitConfig) - 编译时所使用的JitConfig配置项详细可参考 :class:`mindspore.JitConfig`。默认值None。
- **jit_config** (JitConfig) - 编译时所使用的JitConfig配置项详细可参考 :class:`mindspore.JitConfig`。默认值None。
.. note::
- 如果指定了 `input_signature` ,则 `fn` 的每个输入都必须是Tensor。并且 `fn` 的输入参数将不会接受 `**kwargs` 参数。

View File

@ -1,5 +1,5 @@
mindspore.ops.random_gamma
====================
==========================
.. py:function:: mindspore.ops.random_gamma(shape, alpha, seed=None)

View File

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