mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
made tests more repeatable
This commit is contained in:
parent
b9332698fe
commit
66439bca25
@ -1419,6 +1419,10 @@ namespace
|
||||
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();
|
||||
#ifdef DLIB_USE_CUDA
|
||||
test_conv();
|
||||
|
Loading…
Reference in New Issue
Block a user