From 8b8530c5f629e9b11c84ec3647ed969310d25cf2 Mon Sep 17 00:00:00 2001 From: juncaipeng <52520497+juncaipeng@users.noreply.github.com> Date: Wed, 5 Feb 2020 09:31:58 +0800 Subject: [PATCH] fix chain doc, test=develop, test=document_preview (#22070) (#22428) * fix chain doc, test=develop, test=document_preview --- python/paddle/reader/decorator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/paddle/reader/decorator.py b/python/paddle/reader/decorator.py index dd3a143462..becf61934e 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. -- GitLab