27 #ifndef LBANN_CALLBACKS_CALLBACK_SET_WEIGHTS_VALUE_HPP_INCLUDED 28 #define LBANN_CALLBACKS_CALLBACK_SET_WEIGHTS_VALUE_HPP_INCLUDED 55 std::string
name()
const override;
63 template <
class Archive>
85 const google::protobuf::Message&,
86 std::shared_ptr<lbann_summary>
const&);
91 #endif // LBANN_CALLBACKS_CALLBACK_SET_WEIGHTS_VALUE_HPP_INCLUDED
set_weights_value * copy() const override
set_weights_value & operator=(const set_weights_value &)=default
void write_specific_proto(lbann_data::Callback &proto) const final
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
Base class for callbacks during training/testing.
Abstract base class for neural network models.
double m_value
Value to set weights.
std::string name() const override
Return this callback's name.
Set values in a weights object at a given training step.
friend class cereal::access
std::string m_weights_name
Name of weights object.
std::unique_ptr< callback_base > build_set_weights_value_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
void on_batch_begin(model *m) override
Called at the beginning of a (mini-)batch.
size_t m_step
Mini-batch step at which to set weights value.