ref: 251fc07640d32a10bc7ee5727f1dd52b8ccd9e90
parent: af93fbd55fd5c23a2492166816311d9f67df1b24
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Thu Oct 5 16:07:29 EDT 2017
float constants
--- a/src/mlp.c
+++ b/src/mlp.c
@@ -66,7 +66,7 @@
static OPUS_INLINE float sigmoid_approx(float x)
{
- return .5 + .5*tansig_approx(.5*x);
+ return .5f + .5f*tansig_approx(.5f*x);
}
void compute_dense(const DenseLayer *layer, float *output, const float *input)