!46523 modify the format of files 1207

Merge pull request !46523 from 宦晓玲/code_docs_1207
This commit is contained in:
i-robot 2022-12-08 03:27:25 +00:00 committed by Gitee
commit 8e745469df
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 5 deletions

View File

@ -8,8 +8,8 @@ mindspore.ops.tensor_split
参数:
- **x** (Tensor) - 待分割的Tensor。
- **indices_or_sections** (Union[int, tuple(int), list(int)]) -
如果 `indices_or_sections` 是整数类型n输入将沿`axis`轴分割成n份。如果输入沿着`axis`轴能被n整除那么每个切片的大小相同为 :math:`input.size(axis) / n` 。如果不能被n整除那么前 :math:`input.size(axis) % n` 个切片的大小为 :math:`input.size(axis) // n + 1` ,其余切片的大小为 :math:`input.size(axis) // n`
如果 `indices_or_sections` 是由int组成list或者tuple那么输入将沿着`axis`轴在tuple或list中的索引处切分。例如:math:`indices_or_sections=[2, 3]`:math:`axis=0` 将得到切片 :math:`x[:2]` :math:`x[2:3]` ,和 :math:`x[3:]` .
如果 `indices_or_sections` 是整数类型n输入将沿 `axis` 轴分割成n份。如果输入沿着 `axis` 轴能被n整除那么每个切片的大小相同为 :math:`input.size(axis) / n` 。如果不能被n整除那么前 :math:`input.size(axis) % n` 个切片的大小为 :math:`input.size(axis) // n + 1` ,其余切片的大小为 :math:`input.size(axis) // n`
如果 `indices_or_sections` 是由int组成list或者tuple那么输入将沿着 `axis` 轴在tuple或list中的索引处切分。例如:math:`indices_or_sections=[2, 3]`:math:`axis=0` 将得到切片 :math:`x[:2]` :math:`x[2:3]` ,和 :math:`x[3:]` .
- **axis** (int) - 指定分割轴。默认值0。
返回:

View File

@ -329,7 +329,7 @@ def hamming_window(window_length, periodic=True, alpha=0.54, beta=0.46, *, dtype
Args:
window_length (int): The size of returned window. Must be a non negative integer.
periodic (bool): If True, return a periodic window. If False, return a symmetric window.
periodic (bool, optional): If True, return a periodic window. If False, return a symmetric window.
alpha (float, optional): The coefficient α.
beta (float, optional): The coefficient β.

View File

@ -2389,8 +2389,8 @@ def bitwise_right_shift(x, other):
\end{aligned}
Args:
x (Tensor or Scalar): The input to be right shifted.
other(Tensor or Scalar): The number of bit to be applied on right arithmetic shift.
x (Union[Tensor, Scalar]): The input to be right shifted.
other (Union[Tensor, Scalar]): The number of bit to be applied on right arithmetic shift.
Returns:
Tensor, the result after bitwise right shift.