Skip to content

Commit

Permalink
small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
khalednasr committed Mar 23, 2014
1 parent 77716f2 commit 804c399
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/shogun/neuralnets/NeuralLayer.cpp
Expand Up @@ -13,14 +13,16 @@
using namespace shogun;

CNeuralLayer::CNeuralLayer()
: CSGObject(), m_num_neurons(0)
: CSGObject(), m_num_neurons(0), m_previous_layer_num_neurons(0),
m_batch_size(0)
{
init();
}


CNeuralLayer::CNeuralLayer(int32_t num_neurons)
: CSGObject(), m_num_neurons(num_neurons)
: CSGObject(), m_num_neurons(0),
m_previous_layer_num_neurons(0), m_batch_size(0)
{
init();
}
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/neuralnets/NeuralNetwork.cpp
Expand Up @@ -17,7 +17,7 @@ using namespace shogun;

CNeuralNetwork::CNeuralNetwork()
: CSGObject(), m_num_inputs(0), m_num_layers(0), m_layers(NULL),
m_L2_coeff(0.0), m_batch_size(1)
m_L2_coeff(0.0), m_total_num_parameters(), m_batch_size(1)

{
init();
Expand Down

0 comments on commit 804c399

Please sign in to comment.