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