From ade6c8327812c52c91066bf8eeda3036a001d0dc Mon Sep 17 00:00:00 2001 From: QI JUN Date: Fri, 1 Dec 2017 13:07:15 +0800 Subject: [PATCH] open test_word2vec (#6104) --- python/paddle/v2/fluid/tests/book/test_word2vec.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python/paddle/v2/fluid/tests/book/test_word2vec.py b/python/paddle/v2/fluid/tests/book/test_word2vec.py index 92d3629d4..1b441e15c 100644 --- a/python/paddle/v2/fluid/tests/book/test_word2vec.py +++ b/python/paddle/v2/fluid/tests/book/test_word2vec.py @@ -58,10 +58,6 @@ train_reader = paddle.batch( place = fluid.CPUPlace() exe = fluid.Executor(place) -# fix https://github.com/PaddlePaddle/Paddle/issues/5434 then remove -# below exit line. -exit(0) - exe.run(fluid.default_startup_program()) for pass_id in range(PASS_NUM): @@ -79,6 +75,6 @@ for pass_id in range(PASS_NUM): 'nextw': input_data[4] }, fetch_list=[avg_cost]) - if avg_cost_np[0] < 10.0: + if avg_cost_np[0] < 5.0: exit(0) # if avg cost less than 10.0, we think our code is good. exit(1) -- GitLab