Shortcuts

Struct LBFGSOptions

Inheritance Relationships

Base Type

Struct Documentation

struct torch::optim::LBFGSOptions : public torch::optim::OptimizerCloneableOptions<LBFGSOptions>

Public Functions

LBFGSOptions(double lr = 1)
auto lr(const double &new_lr) -> decltype(*this)
auto lr(double &&new_lr) -> decltype(*this)
const double &lr() const noexcept
double &lr() noexcept
auto max_iter(const int64_t &new_max_iter) -> decltype(*this)
auto max_iter(int64_t &&new_max_iter) -> decltype(*this)
const int64_t &max_iter() const noexcept
int64_t &max_iter() noexcept
auto max_eval(const c10::optional<int64_t> &new_max_eval) -> decltype(*this)
auto max_eval(c10::optional<int64_t> &&new_max_eval) -> decltype(*this)
const c10::optional<int64_t> &max_eval() const noexcept
c10::optional<int64_t> &max_eval() noexcept
auto tolerance_grad(const double &new_tolerance_grad) -> decltype(*this)
auto tolerance_grad(double &&new_tolerance_grad) -> decltype(*this)
const double &tolerance_grad() const noexcept
double &tolerance_grad() noexcept
auto tolerance_change(const double &new_tolerance_change) -> decltype(*this)
auto tolerance_change(double &&new_tolerance_change) -> decltype(*this)
const double &tolerance_change() const noexcept
double &tolerance_change() noexcept
auto history_size(const int64_t &new_history_size) -> decltype(*this)
auto history_size(int64_t &&new_history_size) -> decltype(*this)
const int64_t &history_size() const noexcept
int64_t &history_size() noexcept
auto line_search_fn(const c10::optional<std::string> &new_line_search_fn) -> decltype(*this)
auto line_search_fn(c10::optional<std::string> &&new_line_search_fn) -> decltype(*this)
const c10::optional<std::string> &line_search_fn() const noexcept
c10::optional<std::string> &line_search_fn() noexcept
void serialize(torch::serialize::InputArchive &archive) override
void serialize(torch::serialize::OutputArchive &archive) const override
~LBFGSOptions() override = default
double get_lr() const override
void set_lr(const double lr) override

Friends

friend bool operator==(const LBFGSOptions &lhs, const LBFGSOptions &rhs)

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources