diff --git a/python/paddle/reader/decorator.py b/python/paddle/reader/decorator.py index dd3a143462333f3a50539c78a3853dbc95c7c0ed..becf61934ed00a7e1cf22d05d9489dc51d4746c2 100644 --- a/python/paddle/reader/decorator.py +++ b/python/paddle/reader/decorator.py @@ -151,7 +151,8 @@ def shuffle(reader, buf_size): def chain(*readers): """ Use the input data readers to create a chained data reader. The new created reader - chains the outputs of input readers together as its output. + chains the outputs of input readers together as its output, and it do not change + the format of the outputs. **Note**: ``paddle.reader.chain`` is the alias of ``paddle.fluid.io.chain``, and @@ -162,7 +163,7 @@ def chain(*readers): [10, 10, 10], [20, 20, 20]. The chained reader will output: - [[0, 0, 0], [10, 10, 10], [20, 20, 20]]. + [0, 0, 0], [10, 10, 10], [20, 20, 20]. Args: readers(list): input data readers.