fix: fill biases with zeros in fill_random

This commit is contained in:
2026-10-25 18:37:50 +01:00
parent 490661ebc0
commit 471c9c8997
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ private:
void fill_random(const Dist& dist) {
T scale = std::sqrt(2.0 / static_cast<T>(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; }