"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "97bdae9e8539b926710664a4257a05cac14c0515"
Commit 9bf4534a authored by Davis King's avatar Davis King
Browse files

Updated spec to say that the user defined layers must be copyable.

parent e1b2c950
...@@ -37,6 +37,14 @@ namespace dlib ...@@ -37,6 +37,14 @@ namespace dlib
layer objects be default constructable. layer objects be default constructable.
!*/ !*/
EXAMPLE_INPUT_LAYER (
const EXAMPLE_INPUT_LAYER& item
);
/*!
ensures
- EXAMPLE_INPUT_LAYER objects are copy constructable
!*/
EXAMPLE_INPUT_LAYER( EXAMPLE_INPUT_LAYER(
const some_other_input_layer_type& item const some_other_input_layer_type& item
); );
......
...@@ -110,6 +110,14 @@ namespace dlib ...@@ -110,6 +110,14 @@ namespace dlib
layer objects be default constructable. layer objects be default constructable.
!*/ !*/
EXAMPLE_LAYER_ (
const EXAMPLE_LAYER_& item
);
/*!
ensures
- EXAMPLE_LAYER_ objects are copy constructable
!*/
EXAMPLE_LAYER_( EXAMPLE_LAYER_(
const some_other_layer_type& item const some_other_layer_type& item
); );
......
...@@ -42,6 +42,13 @@ namespace dlib ...@@ -42,6 +42,13 @@ namespace dlib
const static unsigned int sample_expansion_factor; const static unsigned int sample_expansion_factor;
typedef whatever_type_you_use_for_labels label_type; typedef whatever_type_you_use_for_labels label_type;
EXAMPLE_LOSS_LAYER_ (
const EXAMPLE_LOSS_LAYER_& item
);
/*!
ensures
- EXAMPLE_LOSS_LAYER_ objects are copy constructable
!*/
// Implementing to_label() is optional. // Implementing to_label() is optional.
template < template <
......
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