29 #ifndef LBANN_CALLBACKS_CALLBACK_PRINT_STATISTICS_HPP_INCLUDED 30 #define LBANN_CALLBACKS_CALLBACK_PRINT_STATISTICS_HPP_INCLUDED 59 std::string
name()
const override {
return "print_statistics"; }
65 template <
class Archive>
81 const google::protobuf::Message&,
82 std::shared_ptr<lbann_summary>
const&);
87 #endif // LBANN_CALLBACKS_CALLBACK_PRINT_STATISTICS_HPP_INCLUDED void write_specific_proto(lbann_data::Callback &proto) const final
std::string name() const override
Return this callback's name.
void report_results(model *m)
void on_validation_end(model *m) override
Called immediately after the end of validation.
void on_epoch_end(model *m) override
Called immediate after the end of each epoch.
void on_epoch_begin(model *m) override
Called at the beginning of each epoch.
Base class for callbacks during training/testing.
print_statistics * copy() const override
Abstract base class for neural network models.
std::unique_ptr< callback_base > build_print_statistics_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
print_statistics & operator=(const print_statistics &)=default
print_statistics(int batch_interval=1, bool print_global_stat_only=false)
void setup(model *m) override
Called once to set up the callback on the model (after all layers are set up).
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
bool m_print_global_stat_only
void on_test_end(model *m) override
Called immediately after the end of testing.