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
79344339
Commit
79344339
authored
Dec 07, 2015
by
Davis King
Browse files
Added bn layer tests.
parent
7550681b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+9
-4
No files found.
dlib/test/dnn.cpp
View file @
79344339
...
...
@@ -203,8 +203,8 @@ namespace
gamma_grad
.
copy_size
(
gamma
);
beta_grad
.
copy_size
(
beta
);
src_grad
=
0
;
gamma_grad
=
0
;
beta_grad
=
0
;
gamma_grad
=
8
;
beta_grad
=
8
;
batch_normalize_gradient
bng
;
bng
(
gradient_input
,
means
,
vars
,
src
,
gamma
,
src_grad
,
gamma_grad
,
beta_grad
);
...
...
@@ -280,8 +280,8 @@ namespace
gamma_grad
.
copy_size
(
gamma
);
beta_grad
.
copy_size
(
beta
);
src_grad
=
0
;
gamma_grad
=
0
;
beta_grad
=
0
;
gamma_grad
=
9
;
beta_grad
=
9
;
batch_normalize_conv_gradient
bng
;
bng
(
gradient_input
,
means
,
vars
,
src
,
gamma
,
src_grad
,
gamma_grad
,
beta_grad
);
...
...
@@ -566,6 +566,11 @@ namespace
void
test_layers
()
{
{
print_spinner
();
bn_
l
;
DLIB_TEST_MSG
(
test_layer
(
l
),
test_layer
(
l
));
}
{
print_spinner
();
con_
l
(
3
,
3
,
3
,
2
,
2
);
...
...
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