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
d6a1e273
Commit
d6a1e273
authored
Aug 14, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated solvers to correctly pull in cont_'s bias parameter multipliers.
parent
9043c741
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
solvers.h
dlib/dnn/solvers.h
+38
-0
No files found.
dlib/dnn/solvers.h
View file @
d6a1e273
...
@@ -89,6 +89,25 @@ namespace dlib
...
@@ -89,6 +89,25 @@ namespace dlib
return
v
;
return
v
;
}
}
template
<
long
_num_filters
,
long
_nr
,
long
_nc
,
int
_stride_y
,
int
_stride_x
,
int
_padding_y
,
int
_padding_x
>
const
tensor
&
operator
()
(
const
float
learning_rate
,
const
cont_
<
_num_filters
,
_nr
,
_nc
,
_stride_y
,
_stride_x
,
_padding_y
,
_padding_x
>&
l
,
const
tensor
&
params_grad
)
{
update_considering_bias
(
learning_rate
,
l
,
params_grad
,
params_grad
.
size
()
-
l
.
num_filters
());
return
v
;
}
template
<
layer_mode
mode
>
template
<
layer_mode
mode
>
const
tensor
&
operator
()
(
const
tensor
&
operator
()
(
const
float
learning_rate
,
const
float
learning_rate
,
...
@@ -261,6 +280,25 @@ namespace dlib
...
@@ -261,6 +280,25 @@ namespace dlib
return
s
;
return
s
;
}
}
template
<
long
_num_filters
,
long
_nr
,
long
_nc
,
int
_stride_y
,
int
_stride_x
,
int
_padding_y
,
int
_padding_x
>
const
tensor
&
operator
()
(
const
float
learning_rate
,
const
cont_
<
_num_filters
,
_nr
,
_nc
,
_stride_y
,
_stride_x
,
_padding_y
,
_padding_x
>&
l
,
const
tensor
&
params_grad
)
{
update_considering_bias
(
learning_rate
,
l
,
params_grad
,
params_grad
.
size
()
-
l
.
num_filters
());
return
s
;
}
template
<
layer_mode
mode
>
template
<
layer_mode
mode
>
const
tensor
&
operator
()
(
const
tensor
&
operator
()
(
const
float
learning_rate
,
const
float
learning_rate
,
...
...
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