mirror of
https://github.com/wassname/Ranger21.git
synced 2026-09-13 12:11:27 +08:00
basic framework
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ class Ranger21(torch.optim.Optimizer):
|
||||
return 1.0
|
||||
|
||||
if style=='linear':
|
||||
return min(1.0, (step+1/warmup) )
|
||||
return min(1.0, (step/warmup) )
|
||||
|
||||
elif style=='exponential':
|
||||
return 1.0 - math.exp(-step/warmup)
|
||||
|
||||
Reference in New Issue
Block a user