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

Debug mode of DBN C++ code leads to equal results #27

Open
carterbao opened this issue Nov 30, 2016 · 1 comment
Open

Debug mode of DBN C++ code leads to equal results #27

carterbao opened this issue Nov 30, 2016 · 1 comment

Comments

@carterbao
Copy link

While changing from debug mode to release in Visual Studio makes the correct result. So where is the problem?

@carterbao
Copy link
Author

I got it, in the HiddenLayer(int size, int in, int out, double **w, double *bp) construction function, after b = new double[n_out]; each element of b should be initialized to zero, otherwise they will be randomly initialized to be too large in debug mode. However in release mode, they are initialized to small values.

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