mul.cpp/hpp
added math/mul.cpp/hpp, not tested but should work
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user