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
cff605ad
Commit
cff605ad
authored
Oct 01, 2019
by
Davis King
Browse files
fix warnings
parent
df2bbd8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dlib/dnn/layers.h
dlib/dnn/layers.h
+4
-4
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+1
-1
No files found.
dlib/dnn/layers.h
View file @
cff605ad
...
@@ -3382,7 +3382,7 @@ namespace dlib
...
@@ -3382,7 +3382,7 @@ namespace dlib
const
tensor
&
get_layer_params
()
const
{
return
params
;
}
const
tensor
&
get_layer_params
()
const
{
return
params
;
}
tensor
&
get_layer_params
()
{
return
params
;
}
tensor
&
get_layer_params
()
{
return
params
;
}
friend
void
serialize
(
const
extract_
&
item
,
std
::
ostream
&
out
)
friend
void
serialize
(
const
extract_
&
/*
item
*/
,
std
::
ostream
&
out
)
{
{
serialize
(
"extract_"
,
out
);
serialize
(
"extract_"
,
out
);
serialize
(
_offset
,
out
);
serialize
(
_offset
,
out
);
...
@@ -3391,7 +3391,7 @@ namespace dlib
...
@@ -3391,7 +3391,7 @@ namespace dlib
serialize
(
_nc
,
out
);
serialize
(
_nc
,
out
);
}
}
friend
void
deserialize
(
extract_
&
item
,
std
::
istream
&
in
)
friend
void
deserialize
(
extract_
&
/*
item
*/
,
std
::
istream
&
in
)
{
{
std
::
string
version
;
std
::
string
version
;
deserialize
(
version
,
in
);
deserialize
(
version
,
in
);
...
@@ -3413,7 +3413,7 @@ namespace dlib
...
@@ -3413,7 +3413,7 @@ namespace dlib
if
(
nc
!=
_nc
)
throw
serialization_error
(
"Wrong nc found while deserializing dlib::extract_"
);
if
(
nc
!=
_nc
)
throw
serialization_error
(
"Wrong nc found while deserializing dlib::extract_"
);
}
}
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
extract_
&
item
)
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
extract_
&
/*
item
*/
)
{
{
out
<<
"extract
\t
("
out
<<
"extract
\t
("
<<
"offset="
<<
_offset
<<
"offset="
<<
_offset
...
@@ -3424,7 +3424,7 @@ namespace dlib
...
@@ -3424,7 +3424,7 @@ namespace dlib
return
out
;
return
out
;
}
}
friend
void
to_xml
(
const
extract_
&
item
,
std
::
ostream
&
out
)
friend
void
to_xml
(
const
extract_
&
/*
item
*/
,
std
::
ostream
&
out
)
{
{
out
<<
"<extract"
;
out
<<
"<extract"
;
out
<<
" offset='"
<<
_offset
<<
"'"
;
out
<<
" offset='"
<<
_offset
<<
"'"
;
...
...
dlib/test/dnn.cpp
View file @
cff605ad
...
@@ -2536,7 +2536,7 @@ namespace
...
@@ -2536,7 +2536,7 @@ namespace
double
error
=
0.0
;
double
error
=
0.0
;
for
(
size_t
i
=
0
;
i
<
out
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
out
.
size
();
++
i
)
{
{
for
(
size_t
c
=
0
;
c
<
num_channels
;
++
c
)
for
(
long
c
=
0
;
c
<
num_channels
;
++
c
)
{
{
error
+=
mean
(
squared
(
out
[
i
][
c
]
-
labels
[
i
][
c
]));
error
+=
mean
(
squared
(
out
[
i
][
c
]
-
labels
[
i
][
c
]));
}
}
...
...
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