27 #ifndef LBANN_CALLBACKS_CALLBACK_DUMP_OUTPUTS_HPP_INCLUDED 28 #define LBANN_CALLBACKS_CALLBACK_DUMP_OUTPUTS_HPP_INCLUDED 71 std::set<execution_mode> modes,
72 El::Int batch_interval = 0,
73 std::string directory =
"",
74 std::string file_format =
"");
77 std::string
name()
const override {
return "dump outputs"; }
89 template <
class Archive>
126 std::unique_ptr<callback_base>
128 std::shared_ptr<lbann_summary>
const&);
133 #endif // LBANN_CALLBACKS_CALLBACK_DUMP_OUTPUTS_HPP_INCLUDED void do_dump_outputs(const model &m, const Layer &l)
Dump outputs to file.
std::unique_ptr< callback_base > build_dump_outputs_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
friend class cereal::access
std::set< std::string > m_layer_names
Names of layers with output dumps.
std::string m_directory
Directory for output files.
Neural network tensor operation.
void on_evaluate_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation for evaluation (validation / testing).
dump_outputs * copy() const override
void on_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation.
Dump layer output tensors to files.
Base class for callbacks during training/testing.
Abstract base class for neural network models.
void write_specific_proto(lbann_data::Callback &proto) const final
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
std::set< execution_mode > m_modes
Execution modes with output dumps.
std::string name() const override
Return this callback's name.
std::string m_file_format
Output file format.