Struct AdamWParamState¶
Defined in File adamw.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::optim::OptimizerCloneableParamState< AdamWParamState >
(Template Class OptimizerCloneableParamState)
Struct Documentation¶
-
struct AdamWParamState : public torch::optim::OptimizerCloneableParamState<AdamWParamState>¶
Public Functions
-
inline auto step(const int64_t &new_step) -> decltype(*this)¶
-
inline auto step(int64_t &&new_step) -> decltype(*this)¶
-
inline const int64_t &step() const noexcept¶
-
inline int64_t &step() noexcept¶
-
inline auto exp_avg(const torch::Tensor &new_exp_avg) -> decltype(*this)¶
-
inline auto exp_avg(torch::Tensor &&new_exp_avg) -> decltype(*this)¶
-
inline const torch::Tensor &exp_avg() const noexcept¶
-
inline torch::Tensor &exp_avg() noexcept¶
-
inline auto exp_avg_sq(const torch::Tensor &new_exp_avg_sq) -> decltype(*this)¶
-
inline auto exp_avg_sq(torch::Tensor &&new_exp_avg_sq) -> decltype(*this)¶
-
inline const torch::Tensor &exp_avg_sq() const noexcept¶
-
inline torch::Tensor &exp_avg_sq() noexcept¶
-
inline auto max_exp_avg_sq(const torch::Tensor &new_max_exp_avg_sq) -> decltype(*this)¶
-
inline auto max_exp_avg_sq(torch::Tensor &&new_max_exp_avg_sq) -> decltype(*this)¶
-
inline const torch::Tensor &max_exp_avg_sq() const noexcept¶
-
inline torch::Tensor &max_exp_avg_sq() noexcept¶
-
virtual void serialize(torch::serialize::InputArchive &archive) override¶
-
virtual void serialize(torch::serialize::OutputArchive &archive) const override¶
Friends
-
friend bool operator==(const AdamWParamState &lhs, const AdamWParamState &rhs)¶
-
inline auto step(const int64_t &new_step) -> decltype(*this)¶