mirror of
https://github.com/codeplea/genann
synced 2024-11-21 22:11:34 +03:00
removed line of dead code
This commit is contained in:
parent
b802e1e0b5
commit
d2e716d9d1
1
genann.c
1
genann.c
@ -84,7 +84,6 @@ double inline genann_act_sigmoid_cached(const genann *ann __unused, double a) {
|
|||||||
size_t j = (size_t)((a-sigmoid_dom_min)*interval+0.5);
|
size_t j = (size_t)((a-sigmoid_dom_min)*interval+0.5);
|
||||||
|
|
||||||
/* Because floating point... */
|
/* Because floating point... */
|
||||||
if (unlikely(j < 0)) return lookup[0];
|
|
||||||
if (unlikely(j >= LOOKUP_SIZE)) return lookup[LOOKUP_SIZE - 1];
|
if (unlikely(j >= LOOKUP_SIZE)) return lookup[LOOKUP_SIZE - 1];
|
||||||
|
|
||||||
return lookup[j];
|
return lookup[j];
|
||||||
|
Loading…
Reference in New Issue
Block a user