aboutsummaryrefslogtreecommitdiff
path: root/src/nn.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2023-07-27 09:24:50 -0500
committerjvech <jmvalenciae@unal.edu.co>2023-07-27 09:24:50 -0500
commitd8905e0ef4c05f5cea9c6c00cede7492c770e152 (patch)
treee53094b7c0481a135ca3192233a90a75c5b0b105 /src/nn.h
parent7710efc305682f35cbc8d69d9b1e5739dbb89f0d (diff)
fix: random weights generator bug fixed
Diffstat (limited to 'src/nn.h')
-rw-r--r--src/nn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nn.h b/src/nn.h
index 05ddd28..d66fabc 100644
--- a/src/nn.h
+++ b/src/nn.h
@@ -15,8 +15,8 @@ typedef struct Layer {
size_t neurons, input_nodes;
} Layer;
-void nn_layer_init_weights(Layer *layers, size_t nmemb, size_t input_cols);
-void nn_layer_free_weights(Layer *layer, size_t nmemb);
+void nn_network_init_weights(Layer *network, size_t nmemb, size_t input_cols);
+void nn_network_free_weights(Layer *network, size_t nmemb);
void nn_layer_forward(Layer layer, double *out, size_t out_shape[2], double *input, size_t input_shape[2]); //TODO
void nn_layer_backward(Layer *layer, double *out, size_t out_shape[2]); //TODO
Feel free to download, copy and edit any repo