modify the format of files 1207

This commit is contained in:
huanxiaoling 2022-12-07 13:39:50 +08:00
parent a59088f61a
commit b77f2c41a9
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

@ -328,7 +328,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.