29 #ifndef LBANN_CALLBACKS_CALLBACK_SYNC_LAYERS_HPP_INCLUDED 30 #define LBANN_CALLBACKS_CALLBACK_SYNC_LAYERS_HPP_INCLUDED 53 bool only_input =
false)
62 std::string
name()
const override {
return "sync_layers"; }
74 template <
class Archive>
94 std::unique_ptr<callback_base>
96 std::shared_ptr<lbann_summary>
const&);
101 #endif // LBANN_CALLBACKS_CALLBACK_SYNC_LAYERS_HPP_INCLUDED
Neural network tensor operation.
void write_specific_proto(lbann_data::Callback &proto) const final
std::string name() const override
Return this callback's name.
Base class for callbacks during training/testing.
Abstract base class for neural network models.
virtual void do_sync(Layer *l)
virtual void on_forward_prop_end(model *m)
Called when a model ends forward propagation.
std::unique_ptr< callback_base > build_sync_layers_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
void on_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation.
void on_backward_prop_end(model *m, Layer *l) override
Called when a layer ends backward propagation.
virtual void on_backward_prop_end(model *m)
Called when a model ends backward propagation.
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
sync_layers * copy() const override
sync_layers(bool sync_gpus=true, bool sync_mpi=true, bool only_input=false)
sync_layers & operator=(const sync_layers &)=default