27 #ifndef LBANN_CALLBACKS_CALLBACK_SAVE_IMAGES_HPP_INCLUDED 28 #define LBANN_CALLBACKS_CALLBACK_SAVE_IMAGES_HPP_INCLUDED 50 std::string image_format =
"jpg",
51 std::string image_prefix =
"");
57 std::string
name()
const override {
return "save images"; }
63 template <
class Archive>
87 std::unique_ptr<callback_base>
89 std::shared_ptr<lbann_summary>
const&);
94 #endif // LBANN_CALLBACKS_CALLBACK_SAVE_IMAGES_HPP_INCLUDED std::vector< std::string > m_layer_names
save_images & operator=(const save_images &)=default
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
friend class cereal::access
std::string m_image_format
void on_test_end(model *m) override
Called immediately after the end of testing.
save_images * copy() const override
Base class for callbacks during training/testing.
Abstract base class for neural network models.
std::string m_image_prefix
void write_specific_proto(lbann_data::Callback &proto) const final
std::string name() const override
Return this callback's name.
std::unique_ptr< callback_base > build_save_images_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
void on_epoch_end(model *m) override
Called immediate after the end of each epoch.