Commit 192b75a7 authored by Davis King's avatar Davis King

Added a check for non-finite values to the trust region solver.

parent 4a408d5e
......@@ -294,6 +294,8 @@ namespace dlib
const type rho = measured_improvement/std::abs(predicted_improvement);
if (!is_finite(rho))
break;
if (rho < 0.25)
{
......
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