Struct LBFGSOptions¶
Defined in File lbfgs.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::optim::OptimizerCloneableOptions< LBFGSOptions >
(Template Class OptimizerCloneableOptions)
Struct Documentation¶
-
struct LBFGSOptions : public torch::optim::OptimizerCloneableOptions<LBFGSOptions>¶
Public Functions
-
LBFGSOptions(double lr = 1)¶
-
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 max_iter(const int64_t &new_max_iter) -> decltype(*this)¶
-
inline auto max_iter(int64_t &&new_max_iter) -> decltype(*this)¶
-
inline const int64_t &max_iter() const noexcept¶
-
inline int64_t &max_iter() noexcept¶
-
inline auto max_eval(const std::optional<int64_t> &new_max_eval) -> decltype(*this)¶
-
inline auto max_eval(std::optional<int64_t> &&new_max_eval) -> decltype(*this)¶
-
inline const std::optional<int64_t> &max_eval() const noexcept¶
-
inline std::optional<int64_t> &max_eval() noexcept¶
-
inline auto tolerance_grad(const double &new_tolerance_grad) -> decltype(*this)¶
-
inline auto tolerance_grad(double &&new_tolerance_grad) -> decltype(*this)¶
-
inline const double &tolerance_grad() const noexcept¶
-
inline double &tolerance_grad() noexcept¶
-
inline auto tolerance_change(const double &new_tolerance_change) -> decltype(*this)¶
-
inline auto tolerance_change(double &&new_tolerance_change) -> decltype(*this)¶
-
inline const double &tolerance_change() const noexcept¶
-
inline double &tolerance_change() noexcept¶
-
inline auto history_size(const int64_t &new_history_size) -> decltype(*this)¶
-
inline auto history_size(int64_t &&new_history_size) -> decltype(*this)¶
-
inline const int64_t &history_size() const noexcept¶
-
inline int64_t &history_size() noexcept¶
-
inline auto line_search_fn(const std::optional<std::string> &new_line_search_fn) -> decltype(*this)¶
-
inline auto line_search_fn(std::optional<std::string> &&new_line_search_fn) -> decltype(*this)¶
-
inline const std::optional<std::string> &line_search_fn() const noexcept¶
-
inline std::optional<std::string> &line_search_fn() 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 LBFGSOptions &lhs, const LBFGSOptions &rhs)¶
-
LBFGSOptions(double lr = 1)¶