Commit 437da23e authored by Davis King's avatar Davis King

Set initial bias parameters to 0.

parent 57a1072f
...@@ -84,6 +84,9 @@ namespace dlib ...@@ -84,6 +84,9 @@ namespace dlib
filters = alias_tensor(num_filters, sub.get_output().k(), nr, nc); filters = alias_tensor(num_filters, sub.get_output().k(), nr, nc);
biases = alias_tensor(1,num_filters); biases = alias_tensor(1,num_filters);
// set the initial bias values to zero
biases(params,filters.size()) = 0;
} }
template <typename SUBNET> template <typename SUBNET>
......
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