updater.py 文件源码

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

项目:chainer-began 作者: hvy 项目源码 文件源码
def pixel_wise_loss(self, x, y):
        if self.loss_norm == 1:
            return F.mean_absolute_error(x, y)
        elif self.loss_norm == 2:
            return F.mean_squared_error(x, y)
        else:
            raise ValueError('Invalid norm {}'.format(self.loss_norm))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号