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
437da23e
Commit
437da23e
authored
Dec 06, 2015
by
Davis King
Browse files
Set initial bias parameters to 0.
parent
57a1072f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dlib/dnn/layers.h
dlib/dnn/layers.h
+3
-0
No files found.
dlib/dnn/layers.h
View file @
437da23e
...
...
@@ -84,6 +84,9 @@ namespace dlib
filters
=
alias_tensor
(
num_filters
,
sub
.
get_output
().
k
(),
nr
,
nc
);
biases
=
alias_tensor
(
1
,
num_filters
);
// set the initial bias values to zero
biases
(
params
,
filters
.
size
())
=
0
;
}
template
<
typename
SUBNET
>
...
...
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