Shortcuts

Struct AdagradParamState

Inheritance Relationships

Base Type

Struct Documentation

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

Public Functions

auto sum(const torch::Tensor &new_sum) -> decltype(*this)
auto sum(torch::Tensor &&new_sum) -> decltype(*this)
const torch::Tensor &sum() const noexcept
torch::Tensor &sum() noexcept
auto step(const int64_t &new_step) -> decltype(*this)
auto step(int64_t &&new_step) -> decltype(*this)
const int64_t &step() const noexcept
int64_t &step() noexcept
void serialize(torch::serialize::InputArchive &archive) override
void serialize(torch::serialize::OutputArchive &archive) const override
~AdagradParamState() override = default

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