diff --git a/include/cenet/layer.hpp b/include/cenet/layer.hpp index bd20b64..d8e594b 100644 --- a/include/cenet/layer.hpp +++ b/include/cenet/layer.hpp @@ -81,7 +81,7 @@ private: void fill_random(const Dist& dist) { T scale = std::sqrt(2.0 / static_cast(INPUT_FEATURES)); weights = decltype(weights)::random(dist) * scale; - biases = decltype(biases)::random(dist) * scale; + biases = decltype(biases){}; } auto& forward(const input_type& input) { return output = (input.get() * weights) + biases; } diff --git a/mnist-conv.nn b/mnist-conv.nn index 64c4719..73f0939 100644 Binary files a/mnist-conv.nn and b/mnist-conv.nn differ