!46360 modify the format of files 1202

Merge pull request !46360 from 宦晓玲/code_docs_1202
This commit is contained in:
i-robot 2022-12-02 06:16:51 +00:00 committed by Gitee
commit c5151122d5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 3 additions and 9 deletions

View File

@ -12,9 +12,6 @@ mindspore.ops.coo_log
如果算子Log的输入值在(00.01]或[0.951.05]范围内,则输出精度可能会存在误差。
.. note::
Ascend上输入COOTensor的维度要小于等于8CPU上输入COOTensor的维度要小于8。
参数:
- **x** (COOTensor) - 任意维度的输入COOTensor。该值必须大于0。

View File

@ -12,9 +12,6 @@ mindspore.ops.csr_log
如果算子Log的输入值在(00.01]或[0.951.05]范围内,则输出精度可能会存在误差。
.. note::
Ascend上输入CSRTensor的维度要小于等于8CPU上输入CSRTensor的维度要小于8。
参数:
- **x** (CSRTensor) - 任意维度的输入CSRTensor。该值必须大于0。

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

@ -1514,7 +1514,7 @@ class SST2Dataset(SourceDataset, TextBaseDataset):
Default: None, will include all text.
num_parallel_workers (int, optional): Number of workers to read the data.
Default: None, number set in the mindspore.dataset.config.
shuffle (Union[bool, Shuffle level], optional): Perform reshuffling of the data every epoch.
shuffle (Union[bool, Shuffle], optional): Perform reshuffling of the data every epoch.
Bool type and Shuffle enum are both supported to pass in. Default: `Shuffle.GLOBAL` .
If shuffle is False, no shuffling will be performed;
If shuffle is True, the behavior is the same as setting shuffle to be Shuffle.GLOBAL