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
51065b98
Commit
51065b98
authored
May 05, 2016
by
Davis King
Browse files
Made test error reporting more reliable
parent
4a763305
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
19 deletions
+38
-19
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+38
-19
No files found.
dlib/test/dnn.cpp
View file @
51065b98
...
...
@@ -1151,97 +1151,116 @@ namespace
{
print_spinner
();
multiply_
l
;
DLIB_TEST_MSG
(
test_layer
(
l
),
test_layer
(
l
));
auto
res
=
test_layer
(
l
);
DLIB_TEST_MSG
(
res
,
res
);
}
{
print_spinner
();
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
();
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
();
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
();
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
();
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
();
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
();
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
();
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
();
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
();
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
();
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
();
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
();
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
();
relu_
l
;
DLIB_TEST_MSG
(
test_layer
(
l
),
test_layer
(
l
));
auto
res
=
test_layer
(
l
);
DLIB_TEST_MSG
(
res
,
res
);
}
{
print_spinner
();
prelu_
l
;
DLIB_TEST_MSG
(
test_layer
(
l
),
test_layer
(
l
));
auto
res
=
test_layer
(
l
);
DLIB_TEST_MSG
(
res
,
res
);
}
{
print_spinner
();
sig_
l
;
DLIB_TEST_MSG
(
test_layer
(
l
),
test_layer
(
l
));
auto
res
=
test_layer
(
l
);
DLIB_TEST_MSG
(
res
,
res
);
}
{
print_spinner
();
htan_
l
;
DLIB_TEST_MSG
(
test_layer
(
l
),
test_layer
(
l
));
auto
res
=
test_layer
(
l
);
DLIB_TEST_MSG
(
res
,
res
);
}
{
print_spinner
();
softmax_
l
;
DLIB_TEST_MSG
(
test_layer
(
l
),
test_layer
(
l
));
auto
res
=
test_layer
(
l
);
DLIB_TEST_MSG
(
res
,
res
);
}
}
...
...
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