Commit b8dc0044 authored by Davis King's avatar Davis King

Improved error message.

parent 7b9154ff
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment