Shortcuts

Struct AdamWOptions

Inheritance Relationships

Base Type

Struct Documentation

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

Public Functions

AdamWOptions(double lr = 1e-3)
auto lr(const double &new_lr) -> decltype(*this)
auto lr(double &&new_lr) -> decltype(*this)
const double &lr() const noexcept
double &lr() noexcept
auto betas(const betas_t &new_betas) -> decltype(*this)
auto betas(betas_t &&new_betas) -> decltype(*this)
const betas_t &betas() const noexcept
betas_t &betas() noexcept
auto eps(const double &new_eps) -> decltype(*this)
auto eps(double &&new_eps) -> decltype(*this)
const double &eps() const noexcept
double &eps() 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 amsgrad(const bool &new_amsgrad) -> decltype(*this)
auto amsgrad(bool &&new_amsgrad) -> decltype(*this)
const bool &amsgrad() const noexcept
bool &amsgrad() noexcept
void serialize(torch::serialize::InputArchive &archive) override
void serialize(torch::serialize::OutputArchive &archive) const override
~AdamWOptions() override = default
double get_lr() const override
void set_lr(const double lr) override

Friends

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