Shortcuts

Struct SGDParamState

Inheritance Relationships

Base Type

Struct Documentation

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

Public Functions

auto momentum_buffer(const torch::Tensor &new_momentum_buffer) -> decltype(*this)
auto momentum_buffer(torch::Tensor &&new_momentum_buffer) -> decltype(*this)
const torch::Tensor &momentum_buffer() const noexcept
torch::Tensor &momentum_buffer() noexcept
void serialize(torch::serialize::InputArchive &archive) override
void serialize(torch::serialize::OutputArchive &archive) const override
~SGDParamState() override = default

Friends

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