smore icon indicating copy to clipboard operation
smore copied to clipboard

Found a bug in proNet.cpp, function fastSigmoid(x)

Open De-Light opened this issue 6 years ago • 2 comments
trafficstars

the return sentence return cached_sigmoid[int((x + MAX_SIGMOID) * SIGMOID_TABLE_SIZE / MAX_SIGMOID / 2)]; lead to Segmentation Fault (core dumped) after I change the sentence to return cached_sigmoid[int(int(x + MAX_SIGMOID) * SIGMOID_TABLE_SIZE / MAX_SIGMOID / 2)]; it run correctly.

De-Light avatar Sep 26 '19 09:09 De-Light

Thanks for the feedback. Could you show me what gcc version you used? I'll have a check later.

chihming avatar Sep 26 '19 12:09 chihming

I'm sorry I didn't reply for a long time, my gcc version is 8.2.0.

De-Light avatar Oct 14 '19 06:10 De-Light