Commit bc7898c0 authored by Davis King's avatar Davis King

Added a missing check for division by zero.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403578
parent 42a4f363
......@@ -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;
......
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