DeepLearning icon indicating copy to clipboard operation
DeepLearning copied to clipboard

bug in DBN.cpp

Open lifeiteng opened this issue 11 years ago • 0 comments

DBN::DBN(int size, int n_i, int *hls, int n_o, int n_l) { // construct rbm_layer // DBN-RBM deconstructer bug fixed rbm_layers[i] = new RBM(N, input_size, hidden_layer_sizes[i],
NULL, NULL, NULL); //rbm_layers[i] = new RBM(N, input_size, hidden_layer_sizes[i],
// sigmoid_layers[i]->W, sigmoid_layers[i]->b, NULL); } }

sigmoid_layers[i]->W, sigmoid_layers[i]->b should be set NULL in DBN constructer if not, RBM's W member will be sigmoid_layers[i]->W when RBM deconstruction, there will have issue.

lifeiteng avatar Nov 29 '13 07:11 lifeiteng