diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-07-13 22:33:26 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-07-13 22:33:26 -0500 |
commit | f2cf742719445a6ac7cea17043d3adbcbc247883 (patch) | |
tree | 7282c47ff8c63a436dd83fc77e2c17e58bf2e5d2 /src/nn.c | |
parent | bd74d6e1842eca74ddc2c268ae9f83e43822fc1b (diff) |
add: json_read improved
Diffstat (limited to 'src/nn.c')
-rw-r--r-- | src/nn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,10 +18,10 @@ double * nn_layer_forward(Layer layer, double *input, size_t input_shape[2]) } cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, - input_shape[0], layer.neurons, layer.input_nodes, - 1.0, input, input_shape[1], //alpha A - layer.weights, layer.neurons, // B - 1.0, out, layer.neurons); + input_shape[0], layer.neurons, layer.input_nodes, // m, n, k + 1.0, input, input_shape[1], //alpha X + layer.weights, layer.neurons, // W + 1.0, out, layer.neurons); // beta B return out; } |