29 #ifndef LBANN_CALLBACKS_CALLBACK_GPU_MEMORY_USAGE_HPP_INCLUDED 30 #define LBANN_CALLBACKS_CALLBACK_GPU_MEMORY_USAGE_HPP_INCLUDED 51 std::string
name()
const override {
return "GPU memory usage"; }
57 template <
class Archive>
69 build_gpu_memory_usage_callback_from_pbuf);
74 #endif // LBANN_CALLBACKS_CALLBACK_GPU_MEMORY_USAGE_HPP_INCLUDED gpu_memory_usage * copy() const override
std::string name() const override
Return this callback's name.
gpu_memory_usage & operator=(const gpu_memory_usage &)=default
Base class for callbacks during training/testing.
Abstract base class for neural network models.
void on_epoch_begin(model *m) override
Called at the beginning of each epoch.
gpu_memory_usage()=default
void write_specific_proto(lbann_data::Callback &proto) const final
LBANN_ADD_DEFAULT_CALLBACK_BUILDER(check_dataset, build_check_dataset_callback_from_pbuf)
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.