main.py 文件源码

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

项目:pytorch-geometric-gan 作者: lim0606 项目源码 文件源码
def weight_proj_l2norm(param):
    norm = torch.norm(param.data, p=2) + 1e-8
    coeff = min(opt.wproj_upper, 1.0/norm)
    param.data.mul_(coeff)

# custom weights initialization called on netG and netD
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号