29 #ifndef LBANN_CALLBACKS_PROFILER_HPP_INCLUDED 30 #define LBANN_CALLBACKS_PROFILER_HPP_INCLUDED 42 profiler(
bool sync =
false,
bool skip_init =
false);
73 std::string
name()
const override {
return "profiler"; }
79 template <
class Archive>
97 std::unique_ptr<callback_base>
99 std::shared_ptr<lbann_summary>
const&);
104 #endif // LBANN_CALLBACKS_PROFILER_HPP_INCLUDED std::unique_ptr< callback_base > build_profiler_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
void on_epoch_begin(model *m) override
Called at the beginning of each epoch.
void on_batch_end(model *m) override
Called immediately after the end of a (mini-)batch.
void on_optimize_end(model *m) override
Called when a model ends optimization.
std::string name() const override
Return this callback's name.
void on_validation_begin(model *m) override
Called at the beginning of validation.
Neural network tensor operation.
void on_batch_evaluate_end(model *m) override
Called at the end of a (mini-)batch evaluation (validation / testing).
profiler * copy() const override
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
void on_evaluate_forward_prop_end(model *m) override
Called when a model ends forward propagation for evaluation (validation / testing).
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 on_backward_prop_end(model *m) override
Called when a model ends backward propagation.
void on_forward_prop_end(model *m) override
Called when a model ends forward propagation.
void on_batch_begin(model *m) override
Called at the beginning of a (mini-)batch.
profiler & operator=(const profiler &)=default
void on_forward_prop_begin(model *m) override
Called when a model begins forward propagation.
void on_evaluate_forward_prop_begin(model *m) override
Called when a model begins forward propagation for evaluation (validation / testing).
void on_backward_prop_begin(model *m) override
Called when a model begins backward propagation.
profiler(bool sync=false, bool skip_init=false)
void on_batch_evaluate_begin(model *m) override
Called at the beginning of a (mini-)batch evaluation (validation / testing).
void on_epoch_end(model *m) override
Called immediate after the end of each epoch.
void on_validation_end(model *m) override
Called immediately after the end of validation.
void on_test_end(model *m) override
Called immediately after the end of testing.
void on_test_begin(model *m) override
Called at the beginning of testing.
void on_optimize_begin(model *m) override
Called when a model begins optimization.