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
e4d70f8d
"python/git@developer.sourcefind.cn:change/sglang.git" did not exist on "aa2750beb30fe6663fa68162b8937399cebb03e4"
Commit
e4d70f8d
authored
May 04, 2016
by
Davis King
Browse files
Improved error messages
parent
4ef5908b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
dlib/dnn/cudnn_dlibapi.cpp
dlib/dnn/cudnn_dlibapi.cpp
+21
-5
No files found.
dlib/dnn/cudnn_dlibapi.cpp
View file @
e4d70f8d
...
@@ -924,10 +924,18 @@ namespace dlib
...
@@ -924,10 +924,18 @@ namespace dlib
DLIB_CASSERT
(
is_same_object
(
output
,
filters
)
==
false
,
""
);
DLIB_CASSERT
(
is_same_object
(
output
,
filters
)
==
false
,
""
);
DLIB_CASSERT
(
filters
.
k
()
==
data
.
k
(),
""
);
DLIB_CASSERT
(
filters
.
k
()
==
data
.
k
(),
""
);
DLIB_CASSERT
(
stride_y
>
0
&&
stride_x
>
0
,
""
);
DLIB_CASSERT
(
stride_y
>
0
&&
stride_x
>
0
,
""
);
DLIB_CASSERT
(
filters
.
nr
()
<=
data
.
nr
()
+
2
*
padding_y
,
"Filter windows must be small enough to fit into the padded image."
);
DLIB_CASSERT
(
filters
.
nc
()
<=
data
.
nc
()
+
2
*
padding_x
,
DLIB_CASSERT
(
filters
.
nc
()
<=
data
.
nc
()
+
2
*
padding_x
,
"Filter windows must be small enough to fit into the padded image."
);
"Filter windows must be small enough to fit into the padded image."
<<
"
\n\t
filters.nc(): "
<<
filters
.
nc
()
<<
"
\n\t
data.nc(): "
<<
data
.
nc
()
<<
"
\n\t
padding_x: "
<<
padding_x
);
DLIB_CASSERT
(
filters
.
nr
()
<=
data
.
nr
()
+
2
*
padding_y
,
"Filter windows must be small enough to fit into the padded image."
<<
"
\n\t
filters.nr(): "
<<
filters
.
nr
()
<<
"
\n\t
data.nr(): "
<<
data
.
nr
()
<<
"
\n\t
padding_y: "
<<
padding_y
);
setup
(
data
,
filters
,
stride_y
,
stride_x
,
padding_y
,
padding_x
);
setup
(
data
,
filters
,
stride_y
,
stride_x
,
padding_y
,
padding_x
);
...
@@ -1137,9 +1145,17 @@ namespace dlib
...
@@ -1137,9 +1145,17 @@ namespace dlib
)
)
{
{
DLIB_CASSERT
(
window_width
<=
src
.
nc
()
+
2
*
padding_x
,
DLIB_CASSERT
(
window_width
<=
src
.
nc
()
+
2
*
padding_x
,
"Pooling windows must be small enough to fit into the padded image."
);
"Pooling windows must be small enough to fit into the padded image."
<<
"
\n\t
window_width: "
<<
window_width
<<
"
\n\t
src.nc(): "
<<
src
.
nc
()
<<
"
\n\t
padding_x: "
<<
padding_x
);
DLIB_CASSERT
(
window_height
<=
src
.
nr
()
+
2
*
padding_y
,
DLIB_CASSERT
(
window_height
<=
src
.
nr
()
+
2
*
padding_y
,
"Pooling windows must be small enough to fit into the padded image."
);
"Pooling windows must be small enough to fit into the padded image."
<<
"
\n\t
window_height: "
<<
window_height
<<
"
\n\t
src.nr(): "
<<
src
.
nr
()
<<
"
\n\t
padding_y: "
<<
padding_y
);
const
float
alpha
=
1
;
const
float
alpha
=
1
;
const
float
beta
=
0
;
const
float
beta
=
0
;
int
outN
;
int
outN
;
...
...
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