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
cad73fae
Commit
cad73fae
authored
May 09, 2016
by
Davis King
Browse files
Fixed compiler warnings
parent
1e70c721
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/dnn/layers.h
dlib/dnn/layers.h
+4
-4
No files found.
dlib/dnn/layers.h
View file @
cad73fae
...
...
@@ -251,9 +251,9 @@ namespace dlib
static_assert
(
_nc
>=
0
,
"The number of columns in a filter must be >= 0"
);
static_assert
(
_stride_y
>
0
,
"The filter stride must be > 0"
);
static_assert
(
_stride_x
>
0
,
"The filter stride must be > 0"
);
static_assert
(
0
<=
_padding_y
&&
(
_nr
==
0
&&
_padding_y
==
0
||
_nr
!=
0
&&
_padding_y
<
_nr
),
static_assert
(
0
<=
_padding_y
&&
(
(
_nr
==
0
&&
_padding_y
==
0
)
||
(
_nr
!=
0
&&
_padding_y
<
_nr
)
)
,
"The padding must be smaller than the filter size, unless the filters size is 0."
);
static_assert
(
0
<=
_padding_x
&&
(
_nc
==
0
&&
_padding_x
==
0
||
_nc
!=
0
&&
_padding_x
<
_nc
),
static_assert
(
0
<=
_padding_x
&&
(
(
_nc
==
0
&&
_padding_x
==
0
)
||
(
_nc
!=
0
&&
_padding_x
<
_nc
)
)
,
"The padding must be smaller than the filter size, unless the filters size is 0."
);
public:
...
...
@@ -429,9 +429,9 @@ namespace dlib
static_assert
(
_nc
>=
0
,
"The number of columns in a filter must be >= 0"
);
static_assert
(
_stride_y
>
0
,
"The filter stride must be > 0"
);
static_assert
(
_stride_x
>
0
,
"The filter stride must be > 0"
);
static_assert
(
0
<=
_padding_y
&&
(
_nr
==
0
&&
_padding_y
==
0
||
_nr
!=
0
&&
_padding_y
<
_nr
),
static_assert
(
0
<=
_padding_y
&&
(
(
_nr
==
0
&&
_padding_y
==
0
)
||
(
_nr
!=
0
&&
_padding_y
<
_nr
)
)
,
"The padding must be smaller than the filter size, unless the filters size is 0."
);
static_assert
(
0
<=
_padding_x
&&
(
_nc
==
0
&&
_padding_x
==
0
||
_nc
!=
0
&&
_padding_x
<
_nc
),
static_assert
(
0
<=
_padding_x
&&
(
(
_nc
==
0
&&
_padding_x
==
0
)
||
(
_nc
!=
0
&&
_padding_x
<
_nc
)
)
,
"The padding must be smaller than the filter size, unless the filters size is 0."
);
avg_pool_
(
...
...
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