From b2a969b7b3227a089ac5b482dfd5f9b340a3f483 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Sat, 18 Feb 2017 13:27:25 -0800 Subject: [PATCH] fix according to comment --- python/paddle/reader/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/paddle/reader/__init__.py b/python/paddle/reader/__init__.py index 28a69d83702..493b410e829 100644 --- a/python/paddle/reader/__init__.py +++ b/python/paddle/reader/__init__.py @@ -12,4 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +# It would be too lengthy to require our users to prefix decorators with `decorator`. +# For example, we want the following line +# +# r = paddle.reader.decorator.bufferd(paddle.reader.creator.text("hello.txt")) +# +# to be a shorter version: +# +# r = paddle.reader.buffered(paddle.reader.creator.text("hello.txt")) from decorator import * -- GitLab