29 #ifndef LBANN_CALLBACKS_CALLBACK_SUMMARY_HPP_INCLUDED 30 #define LBANN_CALLBACKS_CALLBACK_SUMMARY_HPP_INCLUDED 51 summary(
const std::shared_ptr<lbann_summary>& summarizer,
52 int batch_interval = 1,
53 int mat_interval = 25);
61 std::string
name()
const override {
return "summary"; }
79 std::unique_ptr<callback_base>
81 std::shared_ptr<lbann_summary>
const&);
86 #endif // LBANN_CALLBACKS_CALLBACK_SUMMARY_HPP_INCLUDED void save_histograms(model *m)
std::string name() const override
Return this callback's name.
summary * copy() const override
std::unique_ptr< callback_base > build_summary_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
void on_test_end(model *m) override
Called immediately after the end of testing.
Base class for callbacks during training/testing.
Abstract base class for neural network models.
std::shared_ptr< lbann_summary > m_summarizer
lbann_summary
summary(const std::shared_ptr< lbann_summary > &summarizer, int batch_interval=1, int mat_interval=25)
void on_train_begin(model *m) override
Called at the beginning of training.
void write_specific_proto(lbann_data::Callback &proto) const final
void on_batch_end(model *m) override
Called immediately after the end of a (mini-)batch.
summary & operator=(const summary &)=default
void on_epoch_end(model *m) override
Called immediate after the end of each epoch.