You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: