From 16583730d7373ddc451aaf53a62a638492ee4d53 Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 25 Apr 2016 07:01:36 -0400 Subject: [PATCH] fixed bug in tests --- dlib/test/dnn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlib/test/dnn.cpp b/dlib/test/dnn.cpp index 2fbcd513d..fd5bc05c5 100644 --- a/dlib/test/dnn.cpp +++ b/dlib/test/dnn.cpp @@ -458,6 +458,7 @@ namespace memcpy(A, truth); DLIB_TEST(max(abs(mat(A)- mat(truth))) < 1e-5); +#ifdef DLIB_USE_CUDA A = 4; A.device(); B.host(); @@ -481,6 +482,7 @@ namespace B.device(); memcpy(A, truth); DLIB_TEST(max(abs(mat(A)- mat(truth))) < 1e-5); +#endif } {