27 #ifndef LBANN_CALLBACKS_CALLBACK_PERTURB_WEIGHTS_HPP_INCLUDED 28 #define LBANN_CALLBACKS_CALLBACK_PERTURB_WEIGHTS_HPP_INCLUDED 59 std::string output_name,
60 El::Int batch_interval = 1);
63 std::string
name()
const override {
return "perturb weights"; }
72 template <
class Archive>
100 std::unique_ptr<callback_base>
102 std::shared_ptr<lbann_summary>
const&);
107 #endif // LBANN_CALLBACKS_CALLBACK_PERTURB_WEIGHTS_HPP_INCLUDED std::string m_output_name
Name of weights being perturbed.
Perturb values in a weights tensor.
perturb_weights * copy() const override
void on_batch_begin(model *m) override
Called at the beginning of a (mini-)batch.
void setup(model *m) override
Called once to set up the callback on the model (after all layers are set up).
void write_specific_proto(lbann_data::Callback &proto) const final
EvalType m_lower
Lower bound for weights values.
Base class for callbacks during training/testing.
Abstract base class for neural network models.
std::unique_ptr< callback_base > build_perturb_weights_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
std::string name() const override
Return this callback's name.
EvalType m_scale
Standard deviation of normal perturbations.
EvalType m_perturb_probability
Probability of applying perturbation to a given value.
friend class cereal::access
void serialize(Archive &ar)
Store state to archive for checkpoint and restart.
EvalType m_upper
Upper bound for weights values.