Commit 1fc117e1 authored by Davis King's avatar Davis King

Clarified error message

parent d85de930
...@@ -539,7 +539,7 @@ namespace dlib ...@@ -539,7 +539,7 @@ namespace dlib
{ {
std::ostringstream sout; std::ostringstream sout;
sout << "Error deserializing dlib::dnn_trainer. The saved sync file is for a network with " << std::endl; sout << "Error deserializing dlib::dnn_trainer. The saved sync file is for a network with " << std::endl;
sout << "a different number of layers. We expected the number of layers to be " << dnn_trainer::num_computational_layers << " but" << std::endl; sout << "a different number of layers. We expected the number of computational layers to be " << dnn_trainer::num_computational_layers << " but" << std::endl;
sout << "instead the file contains " << num_computational_layers << " computational layers." << std::endl; sout << "instead the file contains " << num_computational_layers << " computational layers." << std::endl;
throw serialization_error(sout.str()); throw serialization_error(sout.str());
} }
......
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