Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
917ea27b
Commit
917ea27b
authored
May 07, 2017
by
Davis King
Browse files
Made net_to_xml() output floating point numbers with more digits.
parent
4b2eea20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dlib/dnn/utilities.h
dlib/dnn/utilities.h
+3
-0
No files found.
dlib/dnn/utilities.h
View file @
917ea27b
...
...
@@ -103,9 +103,12 @@ namespace dlib
std
::
ostream
&
out
)
{
auto
old_precision
=
out
.
precision
(
9
);
out
<<
"<net>
\n
"
;
visit_layers
(
net
,
impl
::
visitor_net_to_xml
(
out
));
out
<<
"</net>
\n
"
;
// restore the original stream precision.
out
.
precision
(
old_precision
);
}
// ----------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment