mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 23:26:25 +01:00
Fix indices error
This commit is contained in:
parent
3c611d5681
commit
721d9597d4
@ -33,7 +33,7 @@ void make_dense(Kernel_nn* kernel, float* input, float* output, int size_input,
|
||||
for (int i=0; i < size_output; i++) {
|
||||
f = kernel->bias[i];
|
||||
for (int j=0; j < size_input; j++) {
|
||||
f += kernel->weights[i][j]*input[j];
|
||||
f += kernel->weights[j][i]*input[j];
|
||||
}
|
||||
output[i] = f;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user