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
b8dc0044
Commit
b8dc0044
authored
Aug 31, 2017
by
Davis King
Browse files
Improved error message.
parent
7b9154ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dlib/dnn/tensor.h
dlib/dnn/tensor.h
+4
-1
No files found.
dlib/dnn/tensor.h
View file @
b8dc0044
...
@@ -617,7 +617,10 @@ namespace dlib
...
@@ -617,7 +617,10 @@ namespace dlib
size_t
offset
size_t
offset
)
const
)
const
{
{
DLIB_CASSERT
(
offset
+
size
()
<=
t
.
size
());
DLIB_CASSERT
(
offset
+
size
()
<=
t
.
size
(),
"offset: "
<<
offset
<<
"
\n
"
<<
"size(): "
<<
size
()
<<
"
\n
"
<<
"t.size(): "
<<
t
.
size
()
<<
"
\n
"
);
#ifdef DLIB_USE_CUDA
#ifdef DLIB_USE_CUDA
if
(
!
inst
.
cudnn_descriptor
)
if
(
!
inst
.
cudnn_descriptor
)
...
...
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