Shortcuts

Struct AdagradParamState

Inheritance Relationships

Base Type

Struct Documentation

struct AdagradParamState : public torch::optim::OptimizerCloneableParamState<AdagradParamState>

Public Functions

inline auto sum(const torch::Tensor &new_sum) -> decltype(*this)
inline auto sum(torch::Tensor &&new_sum) -> decltype(*this)
inline const torch::Tensor &sum() const noexcept
inline torch::Tensor &sum() noexcept
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
virtual void serialize(torch::serialize::InputArchive &archive) override
virtual void serialize(torch::serialize::OutputArchive &archive) const override

Friends

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