diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2017-10-06 03:07:29 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2017-10-06 03:07:29 +0300 |
commit | 251fc07640d32a10bc7ee5727f1dd52b8ccd9e90 (patch) | |
tree | 398336f69e1a90014cffcb40048ecaead2fd5628 | |
parent | af93fbd55fd5c23a2492166816311d9f67df1b24 (diff) |
float constants
-rw-r--r-- | src/mlp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ static OPUS_INLINE float tansig_approx(float x) 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) |