"vscode:/vscode.git/clone" did not exist on "b25cec13c57656941aac3b920eeb488c1915df18"
Commit 5fed5bb3 authored by lukovnikov's avatar lukovnikov
Browse files

schedule fix

parent 23bd2eeb
...@@ -38,7 +38,7 @@ class LRSchedule(object): ...@@ -38,7 +38,7 @@ class LRSchedule(object):
:param kw: :param kw:
""" """
super(LRSchedule, self).__init__(**kw) super(LRSchedule, self).__init__(**kw)
if t_total <= 0: if t_total < 0:
logger.warning("t_total value of {} results in schedule not being applied".format(t_total)) logger.warning("t_total value of {} results in schedule not being applied".format(t_total))
if not 0.0 <= warmup < 1.0 and not warmup == -1: if not 0.0 <= warmup < 1.0 and not warmup == -1:
raise ValueError("Invalid warmup: {} - should be in [0.0, 1.0[ or -1".format(warmup)) raise ValueError("Invalid warmup: {} - should be in [0.0, 1.0[ or -1".format(warmup))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment