Class SGD¶
Defined in File sgd.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::optim::Optimizer
(Class Optimizer)
Class Documentation¶
-
class SGD : public torch::optim::Optimizer¶
Public Functions
-
inline explicit SGD(std::vector<OptimizerParamGroup> param_groups, SGDOptions defaults)¶
-
inline explicit SGD(std::vector<Tensor> params, SGDOptions defaults)¶
-
virtual torch::Tensor step(LossClosure closure = nullptr) override¶
A loss function closure, which is expected to return the loss value.
-
inline explicit SGD(std::vector<OptimizerParamGroup> param_groups, SGDOptions defaults)¶