mirror of https://github.com/davisking/dlib.git
Suppress compiler warning
This commit is contained in:
parent
ed8974284d
commit
1b2cdf3c5b
|
@ -1451,7 +1451,7 @@ namespace dlib
|
||||||
void set_num_outputs(long num)
|
void set_num_outputs(long num)
|
||||||
{
|
{
|
||||||
DLIB_CASSERT(num > 0);
|
DLIB_CASSERT(num > 0);
|
||||||
if (num != num_outputs)
|
if (num != (long)num_outputs)
|
||||||
{
|
{
|
||||||
DLIB_CASSERT(get_layer_params().size() == 0,
|
DLIB_CASSERT(get_layer_params().size() == 0,
|
||||||
"You can't change the number of filters in fc_ if the parameter tensor has already been allocated.");
|
"You can't change the number of filters in fc_ if the parameter tensor has already been allocated.");
|
||||||
|
|
Loading…
Reference in New Issue