mul.cpp/hpp

added math/mul.cpp/hpp, not tested but should work
This commit is contained in:
2026-07-28 20:09:16 +02:00
parent c7e87fe191
commit 47671354ce
6 changed files with 899 additions and 12 deletions
+4 -2
View File
@@ -39,6 +39,7 @@
#include <config/omp.hpp>
#include <math/matmul.hpp>
#include <math/mul.hpp>
#include <math/add.hpp>
#include <random/uniform.hpp>
@@ -81,10 +82,11 @@ layer_dense::layer_dense() {
layer_dense::layer_dense(panic::types::uint_t input_size, panic::types::uint_t neurons) {
weights.resize(input_size, neurons);
panic::random::uniform(weights);
//panic::math::matmul(weights, 0.01f);
panic::math::mul(weights, 0.01f, weights);
biases.resize(neurons);
panic::random::uniform(biases);
biases.fill(0);
//panic::random::uniform(biases);
outputs.resize(0,0);
}