Commit 0e7e4330 authored by Davis King's avatar Davis King

Minor changes to avoid compiler warnings.

parent f3ecb81f
......@@ -705,7 +705,7 @@ namespace dlib
test_steps_without_progress = 0;
// Empty out some of the previous loss values so that test_steps_without_progress
// will decrease below test_iter_without_progress_thresh.
for (int cnt = 0; cnt < test_previous_loss_values_dump_amount+test_iter_without_progress_thresh/10 && test_previous_loss_values.size() > 0; ++cnt)
for (unsigned long cnt = 0; cnt < test_previous_loss_values_dump_amount+test_iter_without_progress_thresh/10 && test_previous_loss_values.size() > 0; ++cnt)
test_previous_loss_values.pop_front();
}
}
......@@ -825,7 +825,7 @@ namespace dlib
steps_without_progress = 0;
// Empty out some of the previous loss values so that steps_without_progress
// will decrease below iter_without_progress_thresh.
for (int cnt = 0; cnt < previous_loss_values_dump_amount+iter_without_progress_thresh/10 && previous_loss_values.size() > 0; ++cnt)
for (unsigned long cnt = 0; cnt < previous_loss_values_dump_amount+iter_without_progress_thresh/10 && previous_loss_values.size() > 0; ++cnt)
previous_loss_values.pop_front();
}
}
......@@ -1281,8 +1281,8 @@ namespace dlib
std::atomic<bool> updated_net_since_last_sync;
bool sync_file_reloaded;
int previous_loss_values_dump_amount;
int test_previous_loss_values_dump_amount;
unsigned long previous_loss_values_dump_amount;
unsigned long test_previous_loss_values_dump_amount;
};
// ----------------------------------------------------------------------------------------
......
......@@ -27,12 +27,8 @@ namespace
dlib::rand rnd;
void matrix_test (
void matrix_test1 (
)
/*!
ensures
- runs tests on the matrix stuff compliance with the specs
!*/
{
typedef memory_manager_stateless<char>::kernel_2_2a MM;
print_spinner();
......@@ -739,6 +735,13 @@ namespace
}
}
void matrix_test2 (
)
{
typedef memory_manager_stateless<char>::kernel_2_2a MM;
{
srand(423452);
const long M = 10;
......@@ -1145,7 +1148,8 @@ namespace
void perform_test (
)
{
matrix_test();
matrix_test1();
matrix_test2();
}
} a;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment