未验证 提交 6e38de1c 编写于 作者: Y yuyang18

Strange Hang problem

上级 8c2eba71
...@@ -100,10 +100,11 @@ def main(): ...@@ -100,10 +100,11 @@ def main():
train_data_thread.join() train_data_thread.join()
test_data_thread = pipe_reader_to_queue( test_data_thread = pipe_reader_to_queue(
paddle.batch(mnist.train(), 32), test_queue) paddle.batch(mnist.test(), 32), test_queue)
try: try:
while True: while True:
print numpy.array(tester.run(fetch_list=[test_loss.name])) print 'test loss', numpy.array(
tester.run(fetch_list=[test_loss.name]))
except fluid.core.EOFException: except fluid.core.EOFException:
print 'End of testing' print 'End of testing'
test_reader.reset() test_reader.reset()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册