Unreferrenced function in Pytorch official code

I’m reading ResNet code from official website, however, I see this norm_layer used without ever defined:

It is defined in line 43 otherwise it is None

1 Like

norm_layer is defines as nn.BatchNorm2d by default here and passed to the blocks here.

1 Like