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
f93ee49c
Commit
f93ee49c
authored
Oct 28, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made requires clause a little more sensible.
parent
12bc559d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
layers.h
dlib/dnn/layers.h
+6
-0
layers_abstract.h
dlib/dnn/layers_abstract.h
+2
-2
No files found.
dlib/dnn/layers.h
View file @
f93ee49c
...
...
@@ -75,10 +75,13 @@ namespace dlib
void
set_num_filters
(
long
num
)
{
DLIB_CASSERT
(
num
>
0
);
if
(
num
!=
num_filters_
)
{
DLIB_CASSERT
(
get_layer_params
().
size
()
==
0
,
"You can't change the number of filters in con_ if the parameter tensor has already been allocated."
);
num_filters_
=
num
;
}
}
double
get_learning_rate_multiplier
()
const
{
return
learning_rate_multiplier
;
}
double
get_weight_decay_multiplier
()
const
{
return
weight_decay_multiplier
;
}
...
...
@@ -371,10 +374,13 @@ namespace dlib
void
set_num_filters
(
long
num
)
{
DLIB_CASSERT
(
num
>
0
);
if
(
num
!=
num_filters_
)
{
DLIB_CASSERT
(
get_layer_params
().
size
()
==
0
,
"You can't change the number of filters in cont_ if the parameter tensor has already been allocated."
);
num_filters_
=
num
;
}
}
double
get_learning_rate_multiplier
()
const
{
return
learning_rate_multiplier
;
}
double
get_weight_decay_multiplier
()
const
{
return
weight_decay_multiplier
;
}
...
...
dlib/dnn/layers_abstract.h
View file @
f93ee49c
...
...
@@ -730,7 +730,7 @@ namespace dlib
/*!
requires
- num > 0
- get_layer_params().size() == 0
- get_layer_params().size() == 0
|| num_filters() == num
(i.e. You can't change the number of filters in con_ if the parameter
tensor has already been allocated.)
ensures
...
...
@@ -974,7 +974,7 @@ namespace dlib
/*!
requires
- num > 0
- get_layer_params().size() == 0
- get_layer_params().size() == 0
|| num_filters() == num
(i.e. You can't change the number of filters in cont_ if the parameter
tensor has already been allocated.)
ensures
...
...
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