mirror of https://github.com/davisking/dlib.git
Added a missing check for division by zero.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403578
This commit is contained in:
parent
42a4f363c6
commit
bc7898c018
|
@ -125,6 +125,9 @@ namespace dlib
|
|||
cout << endl;
|
||||
}
|
||||
|
||||
if (current_objective_value == 0)
|
||||
return true;
|
||||
|
||||
if (current_error_gap/current_objective_value < eps)
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue