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
13cc545d
"git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "8e5133025122838f0b1e831b6ca4d09286e8c447"
Commit
13cc545d
authored
May 15, 2016
by
Davis King
Browse files
clarified comments.
parent
93bbe5ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/dnn_mnist_ex.cpp
examples/dnn_mnist_ex.cpp
+3
-1
No files found.
examples/dnn_mnist_ex.cpp
View file @
13cc545d
...
@@ -97,7 +97,9 @@ int main(int argc, char** argv) try
...
@@ -97,7 +97,9 @@ int main(int argc, char** argv) try
// Since DNN training can take a long time, we can ask the trainer to save its state to
// Since DNN training can take a long time, we can ask the trainer to save its state to
// a file named "mnist_sync" every 20 seconds. This way, if we kill this program and
// a file named "mnist_sync" every 20 seconds. This way, if we kill this program and
// start it again it will begin where it left off rather than restarting the training
// start it again it will begin where it left off rather than restarting the training
// from scratch.
// from scratch. This is because, when the program restarts, this call to
// set_synchronization_file() will automatically reload the settings from mnist_sync if
// the file exists.
trainer
.
set_synchronization_file
(
"mnist_sync"
,
std
::
chrono
::
seconds
(
20
));
trainer
.
set_synchronization_file
(
"mnist_sync"
,
std
::
chrono
::
seconds
(
20
));
// Finally, this line begins training. By default, it runs SGD with our specified
// Finally, this line begins training. By default, it runs SGD with our specified
// learning rate until the loss stops decreasing. Then it reduces the learning rate by
// learning rate until the loss stops decreasing. Then it reduces the learning rate by
...
...
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