29 #ifndef LBANN_CALLBACKS_CALLBACK_HANG_HPP_INCLUDED 30 #define LBANN_CALLBACKS_CALLBACK_HANG_HPP_INCLUDED 58 std::string
name()
const override {
return "hang"; }
64 template <
class Archive>
78 std::unique_ptr<callback_base>
80 std::shared_ptr<lbann_summary>
const&);
85 #endif // LBANN_CALLBACKS_CALLBACK_HANG_HPP_INCLUDED int m_rank_to_hang
The rank that will hang; -1 for every rank.
void on_train_begin(model *m) override
Hang on train begin.
void write_specific_proto(lbann_data::Callback &proto) const final
Base class for callbacks during training/testing.
Abstract base class for neural network models.
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
void setup(model *m) override
Called once to set up the callback on the model (after all layers are set up).
hang & operator=(const hang &)=default
std::unique_ptr< callback_base > build_hang_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
std::string name() const override
Return this callback's name.
hang * copy() const override
hang(int rank_to_hang=-1)