27 #ifndef LBANN_CALLBACKS_MIXUP_HPP 28 #define LBANN_CALLBACKS_MIXUP_HPP 33 #include <unordered_set> 62 mixup(std::unordered_set<std::string> layers,
float alpha);
65 std::string
name()
const override {
return "mixup"; }
73 template <
class Archive>
92 std::unique_ptr<callback_base>
94 std::shared_ptr<lbann_summary>
const&);
99 #endif // LBANN_CALLBACKS_MIXUP_HPP friend class cereal::access
Neural network tensor operation.
mixup * copy() const override
void on_forward_prop_end(model *m, Layer *l) override
Called when a layer ends forward propagation.
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 write_specific_proto(lbann_data::Callback &proto) const final
std::unique_ptr< callback_base > build_mixup_callback_from_pbuf(const google::protobuf::Message &, std::shared_ptr< lbann_summary > const &)
std::string name() const override
Return this callback's name.
std::unordered_set< std::string > m_layers