pytorch方法测试详解——归一化(BatchNorm2d) 测试代码:importtorchimporttorch.nnasnnm=nn.BatchNorm2d(2,affine=True)#权重w和偏重将被使用input=torch.rand BatchNorm2d