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
d31723ff
Commit
d31723ff
authored
Apr 19, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo in example
parent
b73f5e81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dnn_mnist_advanced_ex.cpp
examples/dnn_mnist_advanced_ex.cpp
+2
-2
No files found.
examples/dnn_mnist_advanced_ex.cpp
View file @
d31723ff
...
...
@@ -202,12 +202,12 @@ int main(int argc, char** argv) try
// The dnn_trainer will use SGD by default, but you can tell it to use
// different solvers like adam.
//
dnn_trainer<net_type,adam> trainer(net,adam(0.001));
dnn_trainer
<
net_type
,
adam
>
trainer
(
net
,
adam
(
0.001
));
// Also, if you have multiple graphics cards you can tell the trainer to use
// them together to make the training faster. For example, replacing the
// above constructor call with this one would cause it to use GPU cards 0
// and 1.
dnn_trainer
<
net_type
,
adam
>
trainer
(
net
,
adam
(
0.001
),
{
0
,
1
});
//
dnn_trainer<net_type,adam> trainer(net,adam(0.001), {0,1});
trainer
.
be_verbose
();
trainer
.
set_synchronization_file
(
"mnist_resnet_sync"
,
std
::
chrono
::
seconds
(
100
));
...
...
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