Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
9bf4534a
Commit
9bf4534a
authored
Oct 09, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated spec to say that the user defined layers must be copyable.
parent
e1b2c950
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
input_abstract.h
dlib/dnn/input_abstract.h
+8
-0
layers_abstract.h
dlib/dnn/layers_abstract.h
+8
-0
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