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