forked from mindspore-Ecosystem/mindspore
modify the format of files 1207
This commit is contained in:
parent
a59088f61a
commit
b77f2c41a9
|
@ -8,8 +8,8 @@ mindspore.ops.tensor_split
|
||||||
参数:
|
参数:
|
||||||
- **x** (Tensor) - 待分割的Tensor。
|
- **x** (Tensor) - 待分割的Tensor。
|
||||||
- **indices_or_sections** (Union[int, tuple(int), list(int)]) -
|
- **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` 是整数类型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` 是由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。
|
- **axis** (int) - 指定分割轴。默认值:0。
|
||||||
|
|
||||||
返回:
|
返回:
|
||||||
|
|
|
@ -328,7 +328,7 @@ def hamming_window(window_length, periodic=True, alpha=0.54, beta=0.46, *, dtype
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
window_length (int): The size of returned window. Must be a non negative integer.
|
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 α.
|
alpha (float, optional): The coefficient α.
|
||||||
beta (float, optional): The coefficient β.
|
beta (float, optional): The coefficient β.
|
||||||
|
|
||||||
|
|
|
@ -2389,8 +2389,8 @@ def bitwise_right_shift(x, other):
|
||||||
\end{aligned}
|
\end{aligned}
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
x (Tensor or Scalar): The input to be right shifted.
|
x (Union[Tensor, Scalar]): The input to be right shifted.
|
||||||
other(Tensor or Scalar): The number of bit to be applied on right arithmetic shift.
|
other (Union[Tensor, Scalar]): The number of bit to be applied on right arithmetic shift.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Tensor, the result after bitwise right shift.
|
Tensor, the result after bitwise right shift.
|
||||||
|
|
Loading…
Reference in New Issue