forked from mindspore-Ecosystem/mindspore
!18300 Split operator API fix
Merge pull request !18300 from lizhenglong1992/code_docs_split
This commit is contained in:
commit
f1f623b090
|
@ -930,9 +930,9 @@ class Dataset:
|
||||||
|
|
||||||
- Any size equals 0, an error will occur.
|
- Any size equals 0, an error will occur.
|
||||||
- The sum of split sizes < K, the difference of K - sigma(round(fi * k)) will be added to the first
|
- The sum of split sizes < K, the difference of K - sigma(round(fi * k)) will be added to the first
|
||||||
split.
|
split.
|
||||||
- The sum of split sizes > K, the difference of sigma(round(fi * K)) - K will be removed from the first
|
- The sum of split sizes > K, the difference of sigma(round(fi * K)) - K will be removed from the first
|
||||||
large enough split such that it will have at least 1 row after removing the difference.
|
large enough split such that it will have at least 1 row after removing the difference.
|
||||||
|
|
||||||
randomize (bool, optional): Determines whether or not to split the data randomly (default=True).
|
randomize (bool, optional): Determines whether or not to split the data randomly (default=True).
|
||||||
If True, the data will be randomly split. Otherwise, each split will be created with
|
If True, the data will be randomly split. Otherwise, each split will be created with
|
||||||
|
|
|
@ -208,85 +208,85 @@ class GraphData:
|
||||||
:widths: 20 20 20 20 20
|
:widths: 20 20 20 20 20
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
|
|
||||||
* -
|
* -
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
- 3
|
- 3
|
||||||
* - 0
|
* - 0
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
* - 1
|
* - 1
|
||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
- 0
|
- 0
|
||||||
* - 2
|
* - 2
|
||||||
- 1
|
- 1
|
||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
* - 3
|
* - 3
|
||||||
- 1
|
- 1
|
||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
|
|
||||||
.. list-table:: Normal Format
|
.. list-table:: Normal Format
|
||||||
:widths: 20 20 20 20 20
|
:widths: 20 20 20 20 20
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
|
|
||||||
* - src
|
* - src
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
- 3
|
- 3
|
||||||
* - dst_0
|
* - dst_0
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
* - dst_1
|
* - dst_1
|
||||||
- -1
|
- -1
|
||||||
- -1
|
- -1
|
||||||
- 3
|
- 3
|
||||||
- -1
|
- -1
|
||||||
|
|
||||||
.. list-table:: COO Format
|
.. list-table:: COO Format
|
||||||
:widths: 20 20 20 20 20 20
|
:widths: 20 20 20 20 20 20
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
|
|
||||||
* - src
|
* - src
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
- 2
|
- 2
|
||||||
- 3
|
- 3
|
||||||
* - dst
|
* - dst
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
- 0
|
- 0
|
||||||
- 3
|
- 3
|
||||||
- 1
|
- 1
|
||||||
|
|
||||||
.. list-table:: CSR Format
|
.. list-table:: CSR Format
|
||||||
:widths: 40 20 20 20 20 20
|
:widths: 40 20 20 20 20 20
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
|
|
||||||
* - offsetTable
|
* - offsetTable
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
- 4
|
- 4
|
||||||
-
|
-
|
||||||
* - dstTable
|
* - dstTable
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
- 0
|
- 0
|
||||||
- 3
|
- 3
|
||||||
- 1
|
- 1
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
node_list (Union[list, numpy.ndarray]): The given list of nodes.
|
node_list (Union[list, numpy.ndarray]): The given list of nodes.
|
||||||
|
|
Loading…
Reference in New Issue