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
AdagradParamState() = default
AdagradParamState(const AdagradParamState&) = default
AdagradParamState &operator=(const AdagradParamState&) = default
AdagradParamState(AdagradParamState&&) noexcept = default
AdagradParamState &operator=(AdagradParamState&&) noexcept = default
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