29 #ifndef LBANN_CALLBACKS_CALLBACK_DEBUG_IO_HPP_INCLUDED 30 #define LBANN_CALLBACKS_CALLBACK_DEBUG_IO_HPP_INCLUDED 80 std::string
name()
const override {
return "debug_io"; }
86 template <
class Archive>
101 std::unique_ptr<callback_base>
103 std::shared_ptr<lbann_summary>
const&);
108 #endif // LBANN_CALLBACKS_CALLBACK_DEBUG_IO_HPP_INCLUDED debug_io(execution_mode phase=execution_mode::invalid, int debug_lvl=0)
void on_forward_prop_begin(model *m, Layer *l) override
virtual void on_evaluate_forward_prop_end(model *m)
Called when a model ends forward propagation for evaluation (validation / testing).
Neural network tensor operation.
virtual void on_backward_prop_begin(model *m)
Called when a model begins backward propagation.
debug_io * copy() const override
void write_specific_proto(lbann_data::Callback &proto) const final
std::string name() const override
Return this callback's name.
void print_fp_start(model *m, input_layer< DataType > *input)
Base class for callbacks during training/testing.
std::unique_ptr< callback_base > build_debug_io_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
void on_evaluate_forward_prop_begin(model *m, Layer *l) override
Abstract base class for neural network models.
virtual void on_evaluate_forward_prop_begin(model *m)
Called when a model begins forward propagation for evaluation (validation / testing).
virtual void on_forward_prop_end(model *m)
Called when a model ends forward propagation.
debug_io & operator=(const debug_io &)=default
execution_mode
Neural network execution mode.
void on_validation_begin(model *m) override
virtual void on_backward_prop_end(model *m)
Called when a model ends backward propagation.
void on_epoch_begin(model *m) override
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
virtual void on_forward_prop_begin(model *m)
Called when a model begins forward propagation.
void on_test_begin(model *m) override
void print_phase_start(model *m, execution_mode mode)
execution_mode m_debug_phase