mirror of https://github.com/davisking/dlib.git
Fixed a bug where the trainer didn't initialize the solvers unless you
explicitly gave it a solver.
This commit is contained in:
parent
cbdeb1608f
commit
fb49f0ceab
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue