From c52f65e0711cf5bb061df9743a631e9e63694c68 Mon Sep 17 00:00:00 2001 From: qingqing01 Date: Sun, 25 Nov 2018 17:33:31 +0800 Subject: [PATCH] Fix the random fail in test_image_classification.py (#14551) test=develop --- python/paddle/fluid/tests/book/test_image_classification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/book/test_image_classification.py b/python/paddle/fluid/tests/book/test_image_classification.py index cba486cf59..c91bd27895 100644 --- a/python/paddle/fluid/tests/book/test_image_classification.py +++ b/python/paddle/fluid/tests/book/test_image_classification.py @@ -239,7 +239,7 @@ def infer(use_cuda, save_dirname=None): assert len(results[0]) == len(transpiler_results[0]) for i in range(len(results[0])): np.testing.assert_almost_equal( - results[0][i], transpiler_results[0][i], decimal=5) + results[0][i], transpiler_results[0][i], decimal=4) print("infer results: ", results[0]) -- GitLab