Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
16583730
"...utils/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "dc0990c729c6f903b15ab1c03889a10bb7097bbd"
Commit
16583730
authored
Apr 25, 2016
by
Davis King
Browse files
fixed bug in tests
parent
24830e8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+2
-0
No files found.
dlib/test/dnn.cpp
View file @
16583730
...
@@ -458,6 +458,7 @@ namespace
...
@@ -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
...
@@ -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
}
}
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment