From: Paul Brossier Date: Wed, 16 Jan 2019 21:02:06 +0000 (+0100) Subject: [conv2d] remove relu X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=83896948958bc4a52151ecbb81b2f3a5e9c42cea;p=aubio.git [conv2d] remove relu --- diff --git a/src/ai/conv2d.c b/src/ai/conv2d.c index da66cd08..ef7d239e 100644 --- a/src/ai/conv2d.c +++ b/src/ai/conv2d.c @@ -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];