"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "0a6cbea0a5e130ea6f935588f2a66b89b8aa9684"
Commit 5fed5bb3 authored by lukovnikov's avatar lukovnikov
Browse files

schedule fix

parent 23bd2eeb
......@@ -38,7 +38,7 @@ class LRSchedule(object):
:param 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))
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))
......
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