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

bug report #3

Open
chentingpc opened this issue Dec 29, 2015 · 0 comments
Open

bug report #3

chentingpc opened this issue Dec 29, 2015 · 0 comments

Comments

@chentingpc
Copy link

x in InitSigmoidTable() will only take int values as its computation depends on purely int types.

Use the following to fix this bug:
x = 2 * SIGMOID_BOUND * k / sigmoid_table_size - SIGMOID_BOUND;
=> x = 2.0 * SIGMOID_BOUND * k / sigmoid_table_size - SIGMOID_BOUND;

(my code is compiled in Ubuntu with G++ 4.8.4)

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

1 participant