diff --git a/develop/doc_cn/_sources/getstarted/concepts/use_concepts_cn.rst.txt b/develop/doc_cn/_sources/getstarted/concepts/use_concepts_cn.rst.txt index e63ca11102c8ce457afcc3c262fa5f159361c01d..f15b11bd780402a3ec1755900e8c648f5d2a7bc5 100644 --- a/develop/doc_cn/_sources/getstarted/concepts/use_concepts_cn.rst.txt +++ b/develop/doc_cn/_sources/getstarted/concepts/use_concepts_cn.rst.txt @@ -111,7 +111,7 @@ PaddlePaddle支持不同类型的输入数据,主要包括四种类型,和 # define training dataset reader def train_reader(): train_x = np.array([[1, 1], [1, 2], [3, 4], [5, 2]]) - train_y = np.array([-2, -3, -7, -7]) + train_y = np.array([[-2], [-3], [-7], [-7]]) def reader(): for i in xrange(train_y.shape[0]): yield train_x[i], train_y[i] diff --git a/develop/doc_cn/getstarted/concepts/use_concepts_cn.html b/develop/doc_cn/getstarted/concepts/use_concepts_cn.html index 0e45fff06cb72aafb470e285e3357bd809e7e3ca..3391e5d857706951ceeb98303c23a4d831ced0be 100644 --- a/develop/doc_cn/getstarted/concepts/use_concepts_cn.html +++ b/develop/doc_cn/getstarted/concepts/use_concepts_cn.html @@ -299,7 +299,7 @@ paddle.init(use_gpu
# define training dataset reader
 def train_reader():
     train_x = np.array([[1, 1], [1, 2], [3, 4], [5, 2]])
-    train_y = np.array([-2, -3, -7, -7])
+    train_y = np.array([[-2], [-3], [-7], [-7]])
     def reader():
         for i in xrange(train_y.shape[0]):
             yield train_x[i], train_y[i]