Commit 3406a290 authored by Davis King's avatar Davis King

Minor tweaks to avoid compiler warnings

parent 0145ca8a
...@@ -38,11 +38,11 @@ namespace dlib ...@@ -38,11 +38,11 @@ namespace dlib
// ------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
static const cudnnTensorDescriptor_t descriptor(const tensor& t) static cudnnTensorDescriptor_t descriptor(const tensor& t)
{ {
return (const cudnnTensorDescriptor_t)t.get_cudnn_tensor_descriptor().get_handle(); return (const cudnnTensorDescriptor_t)t.get_cudnn_tensor_descriptor().get_handle();
} }
static const cudnnTensorDescriptor_t descriptor(const tensor_descriptor& t) static cudnnTensorDescriptor_t descriptor(const tensor_descriptor& t)
{ {
return (const cudnnTensorDescriptor_t)t.get_handle(); return (const cudnnTensorDescriptor_t)t.get_handle();
} }
......
...@@ -219,7 +219,7 @@ namespace dlib ...@@ -219,7 +219,7 @@ namespace dlib
<< "\n\t nr: " << nr << "\n\t nr: " << nr
<< "\n\t nc: " << nc << "\n\t nc: " << nc
); );
DLIB_ASSERT(nr*nc == t.size() , DLIB_ASSERT(nr*nc == (long)t.size() ,
"\tconst matrix_exp mat(tensor, nr, nc)" "\tconst matrix_exp mat(tensor, nr, nc)"
<< "\n\t The sizes don't match up." << "\n\t The sizes don't match up."
<< "\n\t nr*nc: " << nr*nc << "\n\t nr*nc: " << nr*nc
......
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