From b9d4f71c4a1c2a9f6c3593a1990c5becf8377268 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Thu, 23 Feb 2017 14:10:23 -0800 Subject: [PATCH] fix according to comments --- python/paddle/reader/creator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/paddle/reader/creator.py b/python/paddle/reader/creator.py index 5c840f94b..5a91bb0b8 100644 --- a/python/paddle/reader/creator.py +++ b/python/paddle/reader/creator.py @@ -17,8 +17,9 @@ __all__ = ['np_array', 'text_file'] def np_array(x): """ - Creates a data reader from numpy array. - The highest dimension will be treated as batch dimension to iterate on. + Creates a reader that yields elements of x, if it is a + numpy vector. Or rows of x, if it is a numpy matrix. + Or any sub-hyperplane indexed by the highest dimension. :param x: the numpy array to create reader from. :returns: data reader created from x. -- GitLab