# https://github.com/pytorch/examples/blob/master/dcgan/main.py#L90-L96 def weights_init(m): classname = m.__class__.__name__ if classname.find('Conv') != -1: m.weight.data.normal_(0.0, 0.02) elif classname.find('BatchNorm') != -1: m.weight.data.normal_(1.0, 0.02) m.bia...
www.dbjr.com.cn/article/1893...htm 2025-5-27