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
02c27ff9
Commit
02c27ff9
authored
Apr 12, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed formatting
parent
2e39e5fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dnn_mnist_advanced_ex.cpp
examples/dnn_mnist_advanced_ex.cpp
+6
-6
No files found.
examples/dnn_mnist_advanced_ex.cpp
View file @
02c27ff9
...
@@ -63,8 +63,8 @@ using net_type = loss_multiclass_log<fc<number_of_classes,
...
@@ -63,8 +63,8 @@ using net_type = loss_multiclass_log<fc<number_of_classes,
repeat
<
9
,
res
,
// repeat this layer 9 times
repeat
<
9
,
res
,
// repeat this layer 9 times
res_down
<
res_down
<
res
<
res
<
input
<
matrix
<
unsigned
char
>
input
<
matrix
<
unsigned
char
>
>
>>>>>>>>>>
>
;
>>>>>>>>>>
;
// And finally, let's define a residual network building block that uses
// And finally, let's define a residual network building block that uses
...
@@ -116,8 +116,8 @@ int main(int argc, char** argv) try
...
@@ -116,8 +116,8 @@ int main(int argc, char** argv) try
tag4
<
repeat
<
9
,
pres
,
// 9 groups, each containing 2 prelu layers
tag4
<
repeat
<
9
,
pres
,
// 9 groups, each containing 2 prelu layers
res_down
<
res_down
<
res
<
res
<
input
<
matrix
<
unsigned
char
>
input
<
matrix
<
unsigned
char
>
>
>>>>>>>>>>>
>
;
>>>>>>>>>>>
;
// prelu layers have a floating point parameter. If you want to set it to
// prelu layers have a floating point parameter. If you want to set it to
// something other than its default value you can do so like this:
// something other than its default value you can do so like this:
...
@@ -251,8 +251,8 @@ int main(int argc, char** argv) try
...
@@ -251,8 +251,8 @@ int main(int argc, char** argv) try
repeat
<
9
,
res
,
repeat
<
9
,
res
,
ares_down
<
ares_down
<
ares
<
ares
<
input
<
matrix
<
unsigned
char
>
input
<
matrix
<
unsigned
char
>
>
>>>>>>>>>>
>
;
>>>>>>>>>>
;
// Then we can simply assign our trained net to our testing net.
// Then we can simply assign our trained net to our testing net.
test_net_type
tnet
=
net
;
test_net_type
tnet
=
net
;
// Or if you only had a file with your trained network you could deserialize
// Or if you only had a file with your trained network you could deserialize
...
...
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