Commit fb49f0ce authored by Davis King's avatar Davis King

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

explicitly gave it a solver.
parent cbdeb160
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment