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
78103a58
Commit
78103a58
authored
Jul 01, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated spec about con_
parent
8b805c99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
layers_abstract.h
dlib/dnn/layers_abstract.h
+37
-0
No files found.
dlib/dnn/layers_abstract.h
View file @
78103a58
...
...
@@ -634,6 +634,12 @@ namespace dlib
// ----------------------------------------------------------------------------------------
struct
num_con_outputs
{
num_con_outputs
(
unsigned
long
n
)
:
num_outputs
(
n
)
{}
unsigned
long
num_outputs
;
};
template
<
long
_num_filters
,
long
_nr
,
...
...
@@ -684,6 +690,24 @@ namespace dlib
- #get_bias_weight_decay_multiplier() == 0
!*/
con_
(
num_con_outputs
o
);
/*!
ensures
- #num_filters() == o.num_outputs
- #nr() == _nr
- #nc() == _nc
- #stride_y() == _stride_y
- #stride_x() == _stride_x
- #padding_y() == _padding_y
- #padding_x() == _padding_x
- #get_learning_rate_multiplier() == 1
- #get_weight_decay_multiplier() == 1
- #get_bias_learning_rate_multiplier() == 1
- #get_bias_weight_decay_multiplier() == 0
!*/
long
num_filters
(
)
const
;
/*!
...
...
@@ -693,6 +717,19 @@ namespace dlib
of filters.
!*/
void
set_num_filters
(
long
num
);
/*!
requires
- num > 0
- get_layer_params().size() == 0
(i.e. You can't change the number of filters in con_ if the parameter
tensor has already been allocated.)
ensures
- #num_filters() == num
!*/
long
nr
(
)
const
;
/*!
...
...
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