Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
De-Light opened this issue Sep 26, 2019 · 2 comments
Open

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

De-Light opened this issue Sep 26, 2019 · 2 comments

Comments

@De-Light
Copy link

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.

@chihming
Copy link
Collaborator

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

@De-Light
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants