SGD Uses the step to track the Current mini-batch step for execution mode.
More...
#include <sgd_execution_context.hpp>
SGD Uses the step to track the Current mini-batch step for execution mode.
Step counts are not reset after each epoch.
Definition at line 41 of file sgd_execution_context.hpp.
◆ SGDExecutionContext() [1/4]
| lbann::SGDExecutionContext::SGDExecutionContext |
( |
execution_mode |
mode | ) |
|
◆ ~SGDExecutionContext()
| virtual lbann::SGDExecutionContext::~SGDExecutionContext |
( |
| ) |
|
|
virtualdefault |
◆ SGDExecutionContext() [2/4]
◆ SGDExecutionContext() [3/4]
Get a clean sgd_execution_context.
Copy constructor – deleted.
◆ SGDExecutionContext() [4/4]
| lbann::SGDExecutionContext::SGDExecutionContext |
( |
| ) |
|
|
privatedefault |
◆ get_current_execution_time()
| double lbann::SGDExecutionContext::get_current_execution_time |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_early_stop()
| bool lbann::SGDExecutionContext::get_early_stop |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_epoch()
| size_t lbann::SGDExecutionContext::get_epoch |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_execution_mode()
| execution_mode lbann::SGDExecutionContext::get_execution_mode |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ get_new()
◆ get_state_string()
| std::string lbann::SGDExecutionContext::get_state_string |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ get_type()
| std::string lbann::SGDExecutionContext::get_type |
( |
| ) |
const |
|
overridevirtual |
◆ inc_epoch()
| void lbann::SGDExecutionContext::inc_epoch |
( |
| ) |
|
|
inlinenoexcept |
Increment the current epoch in the execution context.
Increment the counter tracking the number of times that the data set has been traversed.
Definition at line 87 of file sgd_execution_context.hpp.
◆ load_from_checkpoint_distributed()
| void lbann::SGDExecutionContext::load_from_checkpoint_distributed |
( |
persist & |
p | ) |
|
|
overridevirtual |
◆ load_from_checkpoint_shared()
| void lbann::SGDExecutionContext::load_from_checkpoint_shared |
( |
persist & |
p | ) |
|
|
overridevirtual |
◆ operator=() [1/2]
Move assignment operator.
◆ operator=() [2/2]
Copy assignment operator – deleted.
◆ save_to_checkpoint_distributed()
| void lbann::SGDExecutionContext::save_to_checkpoint_distributed |
( |
persist & |
p | ) |
|
|
overridevirtual |
◆ save_to_checkpoint_shared()
| void lbann::SGDExecutionContext::save_to_checkpoint_shared |
( |
persist & |
p | ) |
|
|
overridevirtual |
◆ serialize()
template<class Archive >
| void lbann::SGDExecutionContext::serialize |
( |
Archive & |
ar | ) |
|
Archive for checkpoint and restart
◆ set_early_stop()
| void lbann::SGDExecutionContext::set_early_stop |
( |
bool |
stop | ) |
|
|
inlinenoexcept |
◆ set_execution_mode()
| void lbann::SGDExecutionContext::set_execution_mode |
( |
execution_mode |
mode | ) |
|
|
inlinenoexcept |
◆ start_timer()
| void lbann::SGDExecutionContext::start_timer |
( |
| ) |
|
|
inlinenoexcept |
◆ stop_timer()
| void lbann::SGDExecutionContext::stop_timer |
( |
| ) |
|
|
inlinenoexcept |
◆ cereal::access
| friend class cereal::access |
|
friend |
◆ m_epoch
| size_t lbann::SGDExecutionContext::m_epoch = 0 |
|
private |
◆ m_execution_mode
◆ m_stop_early
| bool lbann::SGDExecutionContext::m_stop_early = false |
|
private |
◆ m_timer
The documentation for this class was generated from the following file: