[dense] remove activation function
authorPaul Brossier <piem@piem.org>
Thu, 10 Jan 2019 18:12:03 +0000 (19:12 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 29 Dec 2021 16:51:57 +0000 (11:51 -0500)
src/ai/dense.c

index 4d7256f..a012ba1 100644 (file)
@@ -106,10 +106,4 @@ void aubio_dense_do(aubio_dense_t *c, aubio_tensor_t *input_tensor,
   fvec_matmul(&input_vec, c->weights, &output_vec);
   // add bias
   fvec_vecadd(&output_vec, c->bias);
-
-  // compute sigmoid
-  uint_t i;
-  for (i = 0; i < output_vec.length; i++) {
-    output_vec.data[i] = 1. / (1. + EXP( - output_vec.data[i] ));
-  }
 }