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
cbd37d56
Commit
cbd37d56
authored
May 30, 2016
by
Davis King
Browse files
Cleaned up the contracts a little.
parent
7a31806b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
dlib/dnn/trainer_abstract.h
dlib/dnn/trainer_abstract.h
+4
-5
No files found.
dlib/dnn/trainer_abstract.h
View file @
cbd37d56
...
@@ -73,6 +73,7 @@ namespace dlib
...
@@ -73,6 +73,7 @@ namespace dlib
- #get_iterations_without_progress_threshold() == 2000
- #get_iterations_without_progress_threshold() == 2000
- #get_learning_rate_shrink_factor() == 0.1
- #get_learning_rate_shrink_factor() == 0.1
- #get_learning_rate_schedule().size() == 0
- #get_learning_rate_schedule().size() == 0
- #get_train_one_step_calls() == 0
- if (cuda_extra_devices.size() > 0) then
- if (cuda_extra_devices.size() > 0) then
- This object will use multiple graphics cards to run the learning
- This object will use multiple graphics cards to run the learning
algorithms. In particular, it will always use whatever device is
algorithms. In particular, it will always use whatever device is
...
@@ -298,12 +299,8 @@ namespace dlib
...
@@ -298,12 +299,8 @@ namespace dlib
unsigned
long
long
get_train_one_step_calls
(
unsigned
long
long
get_train_one_step_calls
(
)
const
;
)
const
;
/*!
/*!
requires
- training process should be done with #train_one_step()
ensures
ensures
- Each #train_one_step() call increases this counter. It can be used to understand the training
- returns the number of times train_one_step() has been called.
stage to make some additional processing like snapshotting or extra testing
- This value is serialized/deserialized via synchronization file
!*/
!*/
void
be_verbose
(
void
be_verbose
(
...
@@ -414,6 +411,7 @@ namespace dlib
...
@@ -414,6 +411,7 @@ namespace dlib
calling this function you should call get_net() before you touch the net
calling this function you should call get_net() before you touch the net
object from the calling thread to ensure no other threads are still
object from the calling thread to ensure no other threads are still
accessing the network.
accessing the network.
- #get_train_one_step_calls() == get_train_one_step_calls() + 1.
!*/
!*/
void
train_one_step
(
void
train_one_step
(
...
@@ -437,6 +435,7 @@ namespace dlib
...
@@ -437,6 +435,7 @@ namespace dlib
calling this function you should call get_net() before you touch the net
calling this function you should call get_net() before you touch the net
object from the calling thread to ensure no other threads are still
object from the calling thread to ensure no other threads are still
accessing the network.
accessing the network.
- #get_train_one_step_calls() == get_train_one_step_calls() + 1.
!*/
!*/
double
get_average_loss
(
double
get_average_loss
(
...
...
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