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
66439bca
Commit
66439bca
authored
May 25, 2016
by
Davis King
Browse files
made tests more repeatable
parent
b9332698
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+4
-0
No files found.
dlib/test/dnn.cpp
View file @
66439bca
...
@@ -1419,6 +1419,10 @@ namespace
...
@@ -1419,6 +1419,10 @@ namespace
void
perform_test
(
void
perform_test
(
)
)
{
{
// Seed the random number generator the same way every time we run the tests so
// they are repeatable.
srand
(
0
);
test_tagging
();
test_tagging
();
#ifdef DLIB_USE_CUDA
#ifdef DLIB_USE_CUDA
test_conv
();
test_conv
();
...
...
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