Skip to content

Commit bf1b805

Browse files
daviskingCopilot
andauthored
Update dlib/dnn/layers.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 93ead3d commit bf1b805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dlib/dnn/layers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ namespace dlib
21702170
unsigned long get_num_outputs() const { return num_outputs; }
21712171
void set_num_outputs(long num)
21722172
{
2173-
DLIB_CASSERT(num > 0);
2173+
DLIB_CASSERT(num > 0, "The number of outputs must be > 0, but num == " << num);
21742174
if (num != (long)num_outputs)
21752175
{
21762176
DLIB_CASSERT(get_layer_params().size() == 0,

0 commit comments

Comments
 (0)