From 179613cd790ddf87c3fc501b346f242d17065917 Mon Sep 17 00:00:00 2001 From: jvech Date: Sat, 5 Aug 2023 20:48:21 -0500 Subject: add: bias backward propagation implemented --- src/nn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nn.h') diff --git a/src/nn.h b/src/nn.h index c07a943..13b5f7c 100644 --- a/src/nn.h +++ b/src/nn.h @@ -37,7 +37,7 @@ void nn_forward( Layer network[], size_t network_size); void nn_backward( - double **weights, + double **weights, double **bias, double **zout, double **outs, double *input, size_t input_shape[2], double *labels, size_t labels_shape[2], @@ -51,7 +51,7 @@ void nn_layer_forward( double *input, size_t input_shape[2]); void nn_layer_backward( - double *weights, size_t weigths_shape[2], + double *weights, double *bias, size_t weigths_shape[2], double *delta, double *out_prev, Layer layer, double alpha); -- cgit v1.2.3-70-g09d2