Dear TA,
In the example code from GitHub https://github.com/kuangliu/pytorch-cifar, nn.BatchNorm2d is invoked in file resnet.py to build BasicBlock. This function seems not shown in Figure 2 in the lab handout, and the images are already normalized by trainloader and testloader. Then why do we need nn.BatchNorm2d? Thanks for your reply.
Regards,
BC
Dear TA,
In the example code from GitHub https://github.com/kuangliu/pytorch-cifar, nn.BatchNorm2d is invoked in file resnet.py to build BasicBlock. This function seems not shown in Figure 2 in the lab handout, and the images are already normalized by trainloader and testloader. Then why do we need nn.BatchNorm2d? Thanks for your reply.
Regards,
BC