Shortcuts

Struct SGDParamState

Inheritance Relationships

Base Type

Struct Documentation

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

Public Functions

inline auto momentum_buffer(const torch::Tensor &new_momentum_buffer) -> decltype(*this)
inline auto momentum_buffer(torch::Tensor &&new_momentum_buffer) -> decltype(*this)
inline const torch::Tensor &momentum_buffer() const noexcept
inline torch::Tensor &momentum_buffer() noexcept
virtual void serialize(torch::serialize::InputArchive &archive) override
virtual void serialize(torch::serialize::OutputArchive &archive) const override

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