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
78103a58
Commit
78103a58
authored
Jul 01, 2017
by
Davis King
Browse files
updated spec about con_
parent
8b805c99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
dlib/dnn/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
...
@@ -634,6 +634,12 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
struct
num_con_outputs
{
num_con_outputs
(
unsigned
long
n
)
:
num_outputs
(
n
)
{}
unsigned
long
num_outputs
;
};
template
<
template
<
long
_num_filters
,
long
_num_filters
,
long
_nr
,
long
_nr
,
...
@@ -684,6 +690,24 @@ namespace dlib
...
@@ -684,6 +690,24 @@ namespace dlib
- #get_bias_weight_decay_multiplier() == 0
- #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
(
long
num_filters
(
)
const
;
)
const
;
/*!
/*!
...
@@ -693,6 +717,19 @@ namespace dlib
...
@@ -693,6 +717,19 @@ namespace dlib
of filters.
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
(
long
nr
(
)
const
;
)
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