|
LBANN
0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
|
Stop SGD based on a fixed batch count. More...
#include <sgd_execution_context.hpp>
Public Member Functions | |
| BatchTerminationCriteria (size_t num_batches) | |
Public Member Functions inherited from lbann::Cloneable< BatchTerminationCriteria, SGDTerminationCriteria > | |
| std::unique_ptr< BatchTerminationCriteria > | clone () const |
| Return an exception-safe, memory-safe copy of this object. More... | |
Private Member Functions | |
| bool | is_done (SGDExecutionContext const &c) const noexcept final |
Private Attributes | |
| size_t | m_max_batches |
Stop SGD based on a fixed batch count.
The training algorithm still tracks the epoch count for other parts of the code (e.g. at_epoch_begin/end callbacks).
Definition at line 157 of file sgd_execution_context.hpp.
|
inline |
Definition at line 161 of file sgd_execution_context.hpp.
|
inlinefinalprivatenoexcept |
Definition at line 164 of file sgd_execution_context.hpp.
|
private |
Definition at line 170 of file sgd_execution_context.hpp.