From 0a678ca045ccf2c734953b84ab79681d432ee1c0 Mon Sep 17 00:00:00 2001 From: juncaipeng <52520497+juncaipeng@users.noreply.github.com> Date: Tue, 4 Feb 2020 10:16:36 +0800 Subject: [PATCH] fix chain doc, test=develop, test=document_preview (#22070) * 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 dd3a1434623..becf61934ed 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