Skip to content
Snippets Groups Projects
Commit ba81a847 authored by Franck Dary's avatar Franck Dary
Browse files

Making sure we use the same seed for all experiments

parent 35341ccf
Branches
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ Mlp::Mlp(std::vector<Layer> layers, unsigned int batch_size) :
trainer(model, 0.001, 0.9, 0.999, 1e-8){
this->batch_size = batch_size;
dynet::cleanup();
dynet::initialize(get_default_params());
this->layers = layers;
......
......@@ -145,6 +145,7 @@ void feat_vec_fill_input_array_dnn(std::vector<float> & input,
total_size += get_feature_size(i);
input.resize(total_size, 0.0);
memset(&input[0], 0, total_size * sizeof input[0]);
char string_value[100];
int index = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment