Commit 51065b98 authored by Davis King's avatar Davis King

Made test error reporting more reliable

parent 4a763305
...@@ -1151,97 +1151,116 @@ namespace ...@@ -1151,97 +1151,116 @@ namespace
{ {
print_spinner(); print_spinner();
multiply_ l; multiply_ l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
max_pool_<3,3,1,1> l; max_pool_<3,3,1,1> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
avg_pool_<3,3,1,1> l; avg_pool_<3,3,1,1> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
affine_ l(CONV_MODE); affine_ l(CONV_MODE);
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
affine_ l(FC_MODE); affine_ l(FC_MODE);
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
bn_<CONV_MODE> l; bn_<CONV_MODE> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
bn_<FC_MODE> l; bn_<FC_MODE> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
con_<3,2,2,2,2> l; con_<3,2,2,2,2> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
con_<3,3,3,1,1>l; con_<3,3,3,1,1>l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
con_<3,3,2,1,1> l; con_<3,3,2,1,1> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
con_<2,1,1,1,1> l; con_<2,1,1,1,1> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
fc_<1,FC_HAS_BIAS> l; fc_<1,FC_HAS_BIAS> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
fc_<5,FC_HAS_BIAS> l; fc_<5,FC_HAS_BIAS> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
fc_<4,FC_NO_BIAS> l; fc_<4,FC_NO_BIAS> l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
relu_ l; relu_ l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
prelu_ l; prelu_ l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
sig_ l; sig_ l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
htan_ l; htan_ l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
{ {
print_spinner(); print_spinner();
softmax_ l; softmax_ l;
DLIB_TEST_MSG(test_layer(l), test_layer(l)); auto res = test_layer(l);
DLIB_TEST_MSG(res, res);
} }
} }
......
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