Fixed a bug where the trainer didn't initialize the solvers unless you

explicitly gave it a solver.
This commit is contained in:
Davis King 2016-01-03 12:03:00 -05:00
parent cbdeb1608f
commit fb49f0ceab
1 changed files with 2 additions and 2 deletions

View File

@ -35,12 +35,12 @@ namespace dlib
typedef typename net_type::input_type input_type;
dnn_trainer(
) : job_pipe(0)
) : job_pipe(0), solvers(net_type::num_layers)
{
init();
}
explicit dnn_trainer(const net_type& net_) : job_pipe(0), net(net_)
explicit dnn_trainer(const net_type& net_) : job_pipe(0), net(net_), solvers(net_type::num_layers)
{
init();
}