Shortcuts

Struct AdagradOptions

Inheritance Relationships

Base Type

Struct Documentation

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

Public Functions

AdagradOptions(double lr = 1e-2)
auto lr(const double &new_lr) -> decltype(*this)
auto lr(double &&new_lr) -> decltype(*this)
const double &lr() const noexcept
double &lr() noexcept
auto lr_decay(const double &new_lr_decay) -> decltype(*this)
auto lr_decay(double &&new_lr_decay) -> decltype(*this)
const double &lr_decay() const noexcept
double &lr_decay() noexcept
auto weight_decay(const double &new_weight_decay) -> decltype(*this)
auto weight_decay(double &&new_weight_decay) -> decltype(*this)
const double &weight_decay() const noexcept
double &weight_decay() noexcept
auto initial_accumulator_value(const double &new_initial_accumulator_value) -> decltype(*this)
auto initial_accumulator_value(double &&new_initial_accumulator_value) -> decltype(*this)
const double &initial_accumulator_value() const noexcept
double &initial_accumulator_value() noexcept
auto eps(const double &new_eps) -> decltype(*this)
auto eps(double &&new_eps) -> decltype(*this)
const double &eps() const noexcept
double &eps() noexcept
void serialize(torch::serialize::InputArchive &archive) override
void serialize(torch::serialize::OutputArchive &archive) const override
~AdagradOptions() override = default
double get_lr() const override
void set_lr(const double lr) override

Friends

friend bool operator==(const AdagradOptions &lhs, const AdagradOptions &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