mirror of https://github.com/davisking/dlib.git
Fixed warning in visual studio.
This commit is contained in:
parent
1db46949ee
commit
05c8391cb2
|
@ -168,7 +168,7 @@ namespace dlib
|
|||
const matrix_exp<EXP>& item
|
||||
)
|
||||
{
|
||||
DLIB_CASSERT(idx < num_samples());
|
||||
DLIB_CASSERT(idx < (unsigned long)num_samples());
|
||||
DLIB_CASSERT(item.size() == nr()*nc()*k());
|
||||
static_assert((is_same_type<float, typename EXP::type>::value == true),
|
||||
"To assign a matrix to a tensor the matrix must contain float values");
|
||||
|
|
Loading…
Reference in New Issue