From d58923d0e3310ab71dc03b315922e4c15449d965 Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Tue, 23 Jan 2018 10:30:19 -0800 Subject: [PATCH] add output to fit a line demo --- python/paddle/v2/fluid/tests/book/test_fit_a_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/fluid/tests/book/test_fit_a_line.py b/python/paddle/v2/fluid/tests/book/test_fit_a_line.py index 462669c262..0b954c60b6 100644 --- a/python/paddle/v2/fluid/tests/book/test_fit_a_line.py +++ b/python/paddle/v2/fluid/tests/book/test_fit_a_line.py @@ -49,7 +49,7 @@ for pass_id in range(PASS_NUM): avg_loss_value, = exe.run(fluid.default_main_program(), feed=feeder.feed(data), fetch_list=[avg_cost]) - + print(avg_loss_value) if avg_loss_value[0] < 10.0: exit(0) # if avg cost less than 10.0, we think our code is good. exit(1) -- GitLab