27 #ifndef LBANN_CALLBACKS_CALLBACK_CHECK_DATASET_HPP_INCLUDED 28 #define LBANN_CALLBACKS_CALLBACK_CHECK_DATASET_HPP_INCLUDED 59 std::string
name()
const override {
return "check data set indices"; }
65 template <
class Archive>
84 build_check_dataset_callback_from_pbuf);
89 #endif // LBANN_CALLBACKS_CALLBACK_CHECK_DATASET_HPP_INCLUDED std::set< long > testing_set
virtual void on_evaluate_forward_prop_end(model *m)
Called when a model ends forward propagation for evaluation (validation / testing).
void on_test_end(model *m) override
Called immediately after the end of testing.
check_dataset * copy() const override
Neural network tensor operation.
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
std::set< long > training_set
void on_epoch_end(model *m) override
Called immediate after the end of each epoch.
std::string name() const override
Return this callback's name.
std::string m_basename
Basename for writing files.
std::set< long > validation_set
Base class for callbacks during training/testing.
check_dataset & operator=(const check_dataset &)=default
Abstract base class for neural network models.
void on_validation_end(model *m) override
Called immediately after the end of validation.
virtual void on_forward_prop_end(model *m)
Called when a model ends forward propagation.
void on_evaluate_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation for evaluation (validation / testing).
void add_to_set(model *m, Layer *l, int64_t step, std::set< long > &set)
LBANN_ADD_DEFAULT_CALLBACK_BUILDER(check_dataset, build_check_dataset_callback_from_pbuf)
void write_specific_proto(lbann_data::Callback &proto) const final
void on_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation.