Skip to content

What is "nn.BatchNorm2d" for? #3

Description

@ghbcpeng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions