Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
9bf4534a
Commit
9bf4534a
authored
Oct 09, 2015
by
Davis King
Browse files
Updated spec to say that the user defined layers must be copyable.
parent
e1b2c950
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
dlib/dnn/input_abstract.h
dlib/dnn/input_abstract.h
+8
-0
dlib/dnn/layers_abstract.h
dlib/dnn/layers_abstract.h
+8
-0
dlib/dnn/loss_abstract.h
dlib/dnn/loss_abstract.h
+7
-0
No files found.
dlib/dnn/input_abstract.h
View file @
9bf4534a
...
@@ -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
);
);
...
...
dlib/dnn/layers_abstract.h
View file @
9bf4534a
...
@@ -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
);
);
...
...
dlib/dnn/loss_abstract.h
View file @
9bf4534a
...
@@ -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
<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment