浏览代码

!1196 dataset: repair format problem in concat Op

Merge pull request !1196 from ms_yan/concat_format
tags/v0.3.0-alpha
mindspore-ci-bot Gitee 5 年前
父节点
当前提交
e4121ffe25
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. +4
    -4
      mindspore/dataset/engine/datasets.py
  2. +1
    -1
      mindspore/dataset/engine/validators.py

+ 4
- 4
mindspore/dataset/engine/datasets.py 查看文件

@@ -613,14 +613,14 @@ class Dataset:
Concat the datasets in the input list of datasets, supported using "+" to reload concat operation.

Note:
The column name,column data type and rank of column data should be the same in input datasets.
The column name,column data type and rank of column data should be the same in input datasets.

Args:
datasets (list or class Dataset): A list of datasets or a single class Dataset
to be concated together with this dataset.
to be concatenated together with this dataset.

Returns:
ConcatDataset, dataset concated.
ConcatDataset, dataset concatenated.

Examples:
>>> import mindspore.dataset as ds
@@ -1741,7 +1741,7 @@ class ConcatDataset(DatasetOp):
The result of applying concat dataset operator to the input Dataset.

Args:
datasets (list): A list of datasets to be concated together.
datasets (list): A list of datasets to be concatenated together.

Raises:
TypeError: If dataset is not an instance of Dataset.


+ 1
- 1
mindspore/dataset/engine/validators.py 查看文件

@@ -903,7 +903,7 @@ def check_zip_dataset(method):


def check_concat(method):
"""check the input arguments of concat_dataset method in `Dataset`."""
"""check the input arguments of concat method in `Dataset`."""

@wraps(method)
def new_method(*args, **kwargs):


正在加载...
取消
保存