def _is_logging_time(step: int, logging_period_batch: int,
last_log_time: float, logging_period_time: int):
if logging_period_batch is not None:
return step % logging_period_batch == logging_period_batch - 1
return last_log_time + logging_period_time < time.process_time()
评论列表
文章目录