wide_resnet.py 文件源码

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

项目:wide-resnet.pytorch 作者: meliketoy 项目源码 文件源码
def conv_init(m):
    classname = m.__class__.__name__
    if classname.find('Conv') != -1:
        init.xavier_uniform(m.weight, gain=np.sqrt(2))
        init.constant(m.bias, 0)
    elif classname.find('BatchNorm') != -1:
        init.constant(m.weight, 1)
        init.constant(m.bias, 0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号