mirror of https://github.com/davisking/dlib.git
fixed bug in tests
This commit is contained in:
parent
24830e8e2c
commit
16583730d7
|
@ -458,6 +458,7 @@ namespace
|
||||||
memcpy(A, truth);
|
memcpy(A, truth);
|
||||||
DLIB_TEST(max(abs(mat(A)- mat(truth))) < 1e-5);
|
DLIB_TEST(max(abs(mat(A)- mat(truth))) < 1e-5);
|
||||||
|
|
||||||
|
#ifdef DLIB_USE_CUDA
|
||||||
A = 4;
|
A = 4;
|
||||||
A.device();
|
A.device();
|
||||||
B.host();
|
B.host();
|
||||||
|
@ -481,6 +482,7 @@ namespace
|
||||||
B.device();
|
B.device();
|
||||||
memcpy(A, truth);
|
memcpy(A, truth);
|
||||||
DLIB_TEST(max(abs(mat(A)- mat(truth))) < 1e-5);
|
DLIB_TEST(max(abs(mat(A)- mat(truth))) < 1e-5);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue