From 594df9a66d6cb302a4d12007dde453ee5d2448b3 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 8 Aug 2017 15:00:38 -0400 Subject: [PATCH] Relaxes test to avoid false alarms. --- dlib/test/dnn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/test/dnn.cpp b/dlib/test/dnn.cpp index eca9249f7..b8f16c538 100644 --- a/dlib/test/dnn.cpp +++ b/dlib/test/dnn.cpp @@ -870,7 +870,7 @@ namespace conv2.get_gradient_for_filters(true, gi, data, filter_gradient2); dlog << LINFO << "filter gradient error: "<< max(abs(mat(filter_gradient1)-mat(filter_gradient2))); - DLIB_TEST_MSG(max(abs(mat(filter_gradient1)-mat(filter_gradient2))) < 1e-3, max(abs(mat(filter_gradient1)-mat(filter_gradient2)))); + DLIB_TEST_MSG(max(abs(mat(filter_gradient1)-mat(filter_gradient2))) < 2e-3, max(abs(mat(filter_gradient1)-mat(filter_gradient2)))); } }