Commit 917ea27b authored by Davis King's avatar Davis King

Made net_to_xml() output floating point numbers with more digits.

parent 4b2eea20
...@@ -103,9 +103,12 @@ namespace dlib ...@@ -103,9 +103,12 @@ namespace dlib
std::ostream& out std::ostream& out
) )
{ {
auto old_precision = out.precision(9);
out << "<net>\n"; out << "<net>\n";
visit_layers(net, impl::visitor_net_to_xml(out)); visit_layers(net, impl::visitor_net_to_xml(out));
out << "</net>\n"; out << "</net>\n";
// restore the original stream precision.
out.precision(old_precision);
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
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