提交 b9d4f71c 编写于 作者: H Helin Wang

fix according to comments

上级 d0dcb3ea
...@@ -17,8 +17,9 @@ __all__ = ['np_array', 'text_file'] ...@@ -17,8 +17,9 @@ __all__ = ['np_array', 'text_file']
def np_array(x): def np_array(x):
""" """
Creates a data reader from numpy array. Creates a reader that yields elements of x, if it is a
The highest dimension will be treated as batch dimension to iterate on. 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. :param x: the numpy array to create reader from.
:returns: data reader created from x. :returns: data reader created from x.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册