[conv2d] remove relu
authorPaul Brossier <piem@piem.org>
Wed, 16 Jan 2019 21:02:06 +0000 (22:02 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 29 Dec 2021 16:51:58 +0000 (11:51 -0500)
src/ai/conv2d.c

index da66cd0..ef7d239 100644 (file)
@@ -292,8 +292,8 @@ void aubio_conv2d_do(aubio_conv2d_t *c, aubio_tensor_t *input_tensor,
         stride_a += c->stride_shape[0];
         // apply bias
         acc += bias;
-        // compute RELU
-        activations->data[k][jj + i] = MAX(acc, 0);
+        // set output activation
+        activations->data[k][jj + i] = acc;
       }
       stride_b += c->stride_shape[1];
       jj += activations->shape[2];