smore
smore copied to clipboard
Found a bug in proNet.cpp, function fastSigmoid(x)
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.
Thanks for the feedback. Could you show me what gcc version you used? I'll have a check later.
I'm sorry I didn't reply for a long time, my gcc version is 8.2.0.