Update trigger.py

This commit is contained in:
Hui Zhang 2021-08-24 18:39:40 +08:00 committed by GitHub
parent c4615e3bba
commit 070bf8b760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: