From 72d4e423d985e512bfdcf0fd8923d9a4ca299be0 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 10 Jan 2019 19:11:28 +0100 Subject: [PATCH] [conv1d] remove activation function --- src/ai/conv1d.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ai/conv1d.c b/src/ai/conv1d.c index 474009eb..dde2b95a 100644 --- a/src/ai/conv1d.c +++ b/src/ai/conv1d.c @@ -263,8 +263,6 @@ void aubio_conv1d_do(aubio_conv1d_t *c, aubio_tensor_t *input_tensor, stride_a += c->stride_shape; // apply bias acc += bias; - // compute RELU - activations->data[j][i] = MAX(acc, 0); } } } @@ -315,7 +313,6 @@ void aubio_conv1d_do(aubio_conv1d_t *c, aubio_tensor_t *input_tensor, // for each kernel filter k for (i = 0; i < activations->shape[1]; i++) { activations->data[j][i] += c->bias->data[i]; - activations->data[j][i] = MAX(activations->data[j][i], 0); } } } -- 2.11.0