前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
Created by: Xreki
每隔self.log_interval打印这self.log_interval个batch时间的平均值。