Struct AdagradOptions¶
Defined in File adagrad.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::optim::OptimizerCloneableOptions< AdagradOptions >
(Template Class OptimizerCloneableOptions)
Struct Documentation¶
-
struct AdagradOptions : public torch::optim::OptimizerCloneableOptions<AdagradOptions>¶
Public Functions
-
AdagradOptions(double lr = 1e-2)¶
-
inline auto lr(const double &new_lr) -> decltype(*this)¶
-
inline auto lr(double &&new_lr) -> decltype(*this)¶
-
inline const double &lr() const noexcept¶
-
inline double &lr() noexcept¶
-
inline auto lr_decay(const double &new_lr_decay) -> decltype(*this)¶
-
inline auto lr_decay(double &&new_lr_decay) -> decltype(*this)¶
-
inline const double &lr_decay() const noexcept¶
-
inline double &lr_decay() noexcept¶
-
inline auto weight_decay(const double &new_weight_decay) -> decltype(*this)¶
-
inline auto weight_decay(double &&new_weight_decay) -> decltype(*this)¶
-
inline const double &weight_decay() const noexcept¶
-
inline double &weight_decay() noexcept¶
-
inline auto initial_accumulator_value(const double &new_initial_accumulator_value) -> decltype(*this)¶
-
inline auto initial_accumulator_value(double &&new_initial_accumulator_value) -> decltype(*this)¶
-
inline const double &initial_accumulator_value() const noexcept¶
-
inline double &initial_accumulator_value() noexcept¶
-
inline auto eps(const double &new_eps) -> decltype(*this)¶
-
inline auto eps(double &&new_eps) -> decltype(*this)¶
-
inline const double &eps() const noexcept¶
-
inline double &eps() noexcept¶
-
virtual void serialize(torch::serialize::InputArchive &archive) override¶
-
virtual void serialize(torch::serialize::OutputArchive &archive) const override¶
-
virtual double get_lr() const override¶
-
virtual void set_lr(const double lr) override¶
Friends
-
friend bool operator==(const AdagradOptions &lhs, const AdagradOptions &rhs)¶
-
AdagradOptions(double lr = 1e-2)¶