Fix indices error

This commit is contained in:
julienChemillier 2023-01-15 17:51:23 +01:00
parent 3c611d5681
commit 721d9597d4

View File

@ -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;
}