Improved outputs from test_layer().

This commit is contained in:
Davis King 2016-01-04 17:55:59 -05:00
parent fb49f0ceab
commit 2639a5233e
1 changed files with 2 additions and 0 deletions

View File

@ -2569,6 +2569,7 @@ namespace dlib
sout << "Gradient error in parameter #" << i <<". Relative error: "<< relative_error << endl; sout << "Gradient error in parameter #" << i <<". Relative error: "<< relative_error << endl;
sout << "expected derivative: " << reference_derivative << endl; sout << "expected derivative: " << reference_derivative << endl;
sout << "output derivative: " << output_derivative << endl; sout << "output derivative: " << output_derivative << endl;
sout << "iteration: " << iter << endl;
return layer_test_results(sout.str()); return layer_test_results(sout.str());
} }
} }
@ -2606,6 +2607,7 @@ namespace dlib
sout << "Gradient error in data variable #" << i <<". Relative error: "<< relative_error << endl; sout << "Gradient error in data variable #" << i <<". Relative error: "<< relative_error << endl;
sout << "expected derivative: " << reference_derivative << endl; sout << "expected derivative: " << reference_derivative << endl;
sout << "output derivative: " << output_derivative << endl; sout << "output derivative: " << output_derivative << endl;
sout << "iteration: " << iter << endl;
return layer_test_results(sout.str()); return layer_test_results(sout.str());
} }
} }