trainer.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:pytorch-fcn 作者: wkentaro 项目源码 文件源码
def train(self):
        max_epoch = int(math.ceil(1. * self.max_iter / len(self.train_loader)))
        for epoch in tqdm.trange(self.epoch, max_epoch,
                                 desc='Train', ncols=80):
            self.epoch = epoch
            self.train_epoch()
            if self.iteration >= self.max_iter:
                break
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号