DeepLearning icon indicating copy to clipboard operation
DeepLearning copied to clipboard

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

Open carterbao opened this issue 9 years ago • 1 comments

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

carterbao avatar Nov 30 '16 13:11 carterbao

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.

carterbao avatar Nov 30 '16 14:11 carterbao