You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertall([hasattr(torch, f'_foreach_{attr}_') forattrin ('mul', 'add', 'lerp', 'sqrt')]), 'this version of torch does not have the prerequisite foreach functions'
43
46
44
47
self._init_lr=lr
@@ -55,7 +58,8 @@ def __init__(
55
58
betas=betas,
56
59
a=a,
57
60
b=b,
58
-
weight_decay=weight_decay
61
+
weight_decay=weight_decay,
62
+
regen_reg_rate=regen_reg_rate
59
63
)
60
64
61
65
super().__init__(params, defaults)
@@ -74,13 +78,16 @@ def step(
74
78
75
79
forgroupinself.param_groups:
76
80
77
-
wd, lr, beta1, beta2, a, b=group['weight_decay'], group['lr'], *group['betas'], group['a'], group['b']
0 commit comments