Skip to content
Snippets Groups Projects

Fix no bias

Merged Olivier BICHLER requested to merge nullbias into dev
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -30,7 +30,7 @@ void fullyconnected_forward (
// Solution: Add a system to check dataformat
for (int och = 0; och < NB_OUTPUTS; och++) {
Bias_T weightedSum = biases[och];
Bias_T weightedSum = (biases) ? biases[och] : Bias_T(0);
for (int iy = 0; iy < CHANNELS_HEIGHT; ++iy) {
for (int ix = 0; ix < CHANNELS_WIDTH; ++ix) {
@@ -48,7 +48,7 @@ Here the kernel to use with inputs in NHWC and weights in NHWC
#pragma omp parallel for
for (int och = 0; och < NB_OUTPUTS; och++) {
Bias_T weightedSum = biases[och];
Bias_T weightedSum = (biases) ? biases[och] : Bias_T(0);
for (int iy = 0; iy < CHANNELS_HEIGHT; ++iy) {
const int iPos = (CHANNELS_WIDTH * iy);
Loading