Browse Source

!4389 fix document api error

Merge pull request !4389 from yanghaitao/yht_fix_doc2
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
8ed3b423e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/dataset/engine/datasets.py

+ 1
- 1
mindspore/dataset/engine/datasets.py View File

@@ -728,7 +728,7 @@ class Dataset:
sizes (Union[list[int], list[float]]): If a list of integers [s1, s2, …, sn] is
provided, the dataset will be split into n datasets of size s1, size s2, …, size sn
respectively. If the sum of all sizes does not equal the original dataset size, an
an error will occur.
error will occur.
If a list of floats [f1, f2, …, fn] is provided, all floats must be between 0 and 1
and must sum to 1, otherwise an error will occur. The dataset will be split into n
Datasets of size round(f1*K), round(f2*K), …, round(fn*K) where K is the size of the


Loading…
Cancel
Save