29 #ifndef LBANN_CALLBACKS_IO_HPP_INCLUDED 30 #define LBANN_CALLBACKS_IO_HPP_INCLUDED 34 #include <google/protobuf/message.h> 52 :
m_layers(layers.begin(), layers.end())
61 std::string
name()
const override {
return "monitor_io"; }
67 template <
class Archive>
81 std::unique_ptr<callback_base>
83 std::shared_ptr<lbann_summary>
const&);
88 #endif // LBANN_CALLBACKS_IO_HPP_INCLUDED std::unordered_set< std::string > m_layers
monitor_io & operator=(const monitor_io &)=default
monitor_io(std::vector< std::string > const &layers)
void on_test_end(model *m) override
Called immediately after the end of testing.
std::string name() const override
Return this callback's name.
void write_specific_proto(lbann_data::Callback &proto) const final
Base class for callbacks during training/testing.
Abstract base class for neural network models.
std::unique_ptr< callback_base > build_monitor_io_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
void on_epoch_end(model *m) override
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
monitor_io * copy() const override