schedule fix
This commit is contained in:
@@ -54,7 +54,7 @@ class LRSchedule(object):
|
||||
"""
|
||||
if self.t_total < 0:
|
||||
return 1.
|
||||
progress = step / self.t_total
|
||||
progress = float(step) / self.t_total
|
||||
ret = self.get_lr_(progress)
|
||||
# warning for exceeding t_total (only active with warmup_linear
|
||||
if not nowarn and self.warn_t_total and progress > 1. and progress > self.warned_for_t_total_at_progress:
|
||||
|
||||
Reference in New Issue
Block a user