Commit 6f970e18 authored by Davis King's avatar Davis King

Fixed network constructors so you can give an input layer for initialization

without getting a compiler error.
parent 0846daab
...@@ -1025,6 +1025,15 @@ namespace dlib ...@@ -1025,6 +1025,15 @@ namespace dlib
get_output_and_gradient_input_disabled(false) get_output_and_gradient_input_disabled(false)
{} {}
add_layer(
const INPUT_LAYER& il
) :
input_layer(il),
this_layer_setup_called(false),
gradient_input_is_stale(true),
get_output_and_gradient_input_disabled(false)
{}
add_layer( add_layer(
LAYER_DETAILS&& layer_det LAYER_DETAILS&& layer_det
) : ) :
......
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