diff --git a/dlib/dnn/layers.h b/dlib/dnn/layers.h index 4aa66bd86..6b426d897 100644 --- a/dlib/dnn/layers.h +++ b/dlib/dnn/layers.h @@ -57,13 +57,13 @@ namespace dlib class fc_ { public: - fc_() : num_outputs(1) + fc_() : num_outputs(1), num_inputs(0) { } explicit fc_( unsigned long num_outputs_ - ) : num_outputs(num_outputs_) + ) : num_outputs(num_outputs_), num_inputs(0) { }