mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-05-29 10:24:46 +00:00
[NFC] polish colossalai/kernel/cuda_native/csrc/cpu_adam.h code style (#945)
This commit is contained in:
parent
8ffdc38376
commit
eb9a81d72a
@ -94,8 +94,14 @@ public:
|
||||
Adam_Optimizer(float alpha = 1e-3, float betta1 = 0.9, float betta2 = 0.999,
|
||||
float eps = 1e-8, float weight_decay = 0,
|
||||
bool adamw_mode = true)
|
||||
: _alpha(alpha), _betta1(betta1), _betta2(betta2), _eps(eps),
|
||||
_weight_decay(weight_decay), _betta1_t(1.0), _betta2_t(1.0), _step(0),
|
||||
: _alpha(alpha),
|
||||
_betta1(betta1),
|
||||
_betta2(betta2),
|
||||
_eps(eps),
|
||||
_weight_decay(weight_decay),
|
||||
_betta1_t(1.0),
|
||||
_betta2_t(1.0),
|
||||
_step(0),
|
||||
_adamw_mode(adamw_mode) {}
|
||||
~Adam_Optimizer() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user