30 #ifndef LBANN_CALLBACKS_CALLBACK_DUMP_MINIBATCH_SAMPLE_INDICES_HPP_INCLUDED 31 #define LBANN_CALLBACKS_CALLBACK_DUMP_MINIBATCH_SAMPLE_INDICES_HPP_INCLUDED 72 std::string
name()
const override {
return "dump minibatch sample indices"; }
78 template <
class Archive>
95 std::unique_ptr<callback_base>
97 std::shared_ptr<lbann_summary>
const&);
102 #endif // LBANN_CALLBACKS_CALLBACK_DUMP_MINIBATCH_SAMPLE_INDICES_HPP_INCLUDED virtual void on_evaluate_forward_prop_end(model *m)
Called when a model ends forward propagation for evaluation (validation / testing).
dump_minibatch_sample_indices(std::string basename, int batch_interval=1)
dump_minibatch_sample_indices * copy() const override
Neural network tensor operation.
void write_specific_proto(lbann_data::Callback &proto) const final
dump_minibatch_sample_indices & operator=(const dump_minibatch_sample_indices &)=default
std::unique_ptr< callback_base > build_dump_mb_indices_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
Base class for callbacks during training/testing.
Abstract base class for neural network models.
Dump sample indices for each minibatch to files.
virtual void on_forward_prop_end(model *m)
Called when a model ends forward propagation.
friend class cereal::access
void on_evaluate_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation for evaluation (validation / testing).
void dump_to_file(model *m, Layer *l, int64_t step)
dump_minibatch_sample_indices()
std::string name() const override
Return this callback's name.
void on_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation.
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.