From 94df81da1a6377885e25040aafb4a262f8573dd6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 28 Jun 2017 04:10:09 +0000 Subject: [PATCH] Deploy to GitHub Pages: 1a0fdb9e207d0fa62648fa4b57cbd1a6a32f872a --- .../doc_cn/_sources/getstarted/concepts/use_concepts_cn.rst.txt | 2 +- develop/doc_cn/getstarted/concepts/use_concepts_cn.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 e63ca11102c..f15b11bd780 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 0e45fff06cb..3391e5d8577 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]
-- 
GitLab