mirror of https://github.com/davisking/dlib.git
Made the probabilistic trainer adapter not hold onto the input trainer
by reference since this causes problems if the probabilistic adapter is saved for later use. Now it will simply hold the trainer by value.
This commit is contained in:
parent
83217d764a
commit
525f2a529b
|
@ -818,7 +818,7 @@ namespace dlib
|
||||||
{
|
{
|
||||||
typedef probabilistic_function<typename trainer_type::trained_function_type> trained_function_type;
|
typedef probabilistic_function<typename trainer_type::trained_function_type> trained_function_type;
|
||||||
|
|
||||||
const trainer_type& trainer;
|
const trainer_type trainer;
|
||||||
const long folds;
|
const long folds;
|
||||||
|
|
||||||
trainer_adapter_probabilistic (
|
trainer_adapter_probabilistic (
|
||||||
|
|
Loading…
Reference in New Issue