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
33513abd
Commit
33513abd
authored
Aug 19, 2017
by
Davis King
Browse files
Suppress compiler warning
parent
3156a5f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/dnn/layers.h
dlib/dnn/layers.h
+1
-1
No files found.
dlib/dnn/layers.h
View file @
33513abd
...
@@ -2906,7 +2906,7 @@ namespace dlib
...
@@ -2906,7 +2906,7 @@ namespace dlib
template
<
typename
SUBNET
>
template
<
typename
SUBNET
>
void
setup
(
const
SUBNET
&
sub
)
void
setup
(
const
SUBNET
&
sub
)
{
{
DLIB_CASSERT
(
sub
.
get_output
().
size
()
>=
sub
.
get_output
().
num_samples
()
*
(
_offset
+
_k
*
_nr
*
_nc
),
DLIB_CASSERT
(
(
long
)
sub
.
get_output
().
size
()
>=
sub
.
get_output
().
num_samples
()
*
(
_offset
+
_k
*
_nr
*
_nc
),
"The tensor we are trying to extract from the input tensor is too big to fit into the input tensor."
);
"The tensor we are trying to extract from the input tensor is too big to fit into the input tensor."
);
aout
=
alias_tensor
(
sub
.
get_output
().
num_samples
(),
_k
*
_nr
*
_nc
);
aout
=
alias_tensor
(
sub
.
get_output
().
num_samples
(),
_k
*
_nr
*
_nc
);
...
...
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