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
02c27ff9
Commit
02c27ff9
authored
Apr 11, 2016
by
Davis King
Browse files
fixed formatting
parent
2e39e5fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
examples/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