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