27 #ifndef LBANN_CALLBACKS_CALLBACK_TIMER_HPP_INCLUDED 28 #define LBANN_CALLBACKS_CALLBACK_TIMER_HPP_INCLUDED 47 timer(
const std::shared_ptr<lbann_summary>& summarizer =
nullptr)
76 std::string
name()
const override {
return "timer"; }
82 template <
class Archive>
116 std::unique_ptr<callback_base>
118 std::shared_ptr<lbann_summary>
const&);
123 #endif // LBANN_CALLBACKS_CALLBACK_TIMER_HPP_INCLUDED void on_validation_end(model *m) override
void on_batch_begin(model *m) override
void on_validation_begin(model *m) override
std::shared_ptr< lbann_summary > m_summarizer
lbann_summary
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
timer * copy() const override
timer & operator=(const timer &)=default
void on_test_begin(model *m) override
std::map< execution_mode, std::vector< EvalType > > m_batch_times
void on_batch_evaluate_begin(model *m) override
void on_batch_end(model *m) override
void write_specific_proto(lbann_data::Callback &proto) const final
void on_epoch_begin(model *m) override
Base class for callbacks during training/testing.
void timing_end(model &m)
Abstract base class for neural network models.
void timing_begin(const model &m)
void batch_timing_end(const model &m)
std::unique_ptr< callback_base > build_timer_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
std::map< execution_mode, EvalType > m_batch_start_times
timer(const std::shared_ptr< lbann_summary > &summarizer=nullptr)
std::map< execution_mode, EvalType > m_start_times
void batch_timing_begin(const model &m)
std::string name() const override
void on_epoch_end(model *m) override
void on_test_end(model *m) override
void on_batch_evaluate_end(model *m) override