float constants
This commit is contained in:
parent
af93fbd55f
commit
251fc07640
1 changed files with 1 additions and 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue