Update trigger.py
This commit is contained in:
parent
c4615e3bba
commit
070bf8b760
|
@ -14,13 +14,13 @@
|
|||
from parakeet.training.triggers.interval_trigger import IntervalTrigger
|
||||
|
||||
|
||||
def never_file_trigger(trainer):
|
||||
def never_fail_trigger(trainer):
|
||||
return False
|
||||
|
||||
|
||||
def get_trigger(trigger):
|
||||
if trigger is None:
|
||||
return never_file_trigger
|
||||
return never_fail_trigger
|
||||
if callable(trigger):
|
||||
return trigger
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue