This commit is contained in:
yh_cc 2022-04-19 23:08:31 +08:00
parent 368c17fe73
commit bfa9920b16

View File

@ -146,7 +146,7 @@ class MoreEvaluateCallback(HasMonitorCallback):
if self.watch_monitor is not None:
return
if callable(self.evaluate_every):
if self.evaluate_every(self):
if self.evaluate_every(trainer):
results = self.evaluator.run()
self.topk_saver.save_topk(trainer, results)
elif self.evaluate_every > 0 and trainer.global_forward_batches % self.evaluate_every == 0: