As @chenglu said, the  forward logic might differ from the order of the stored modules.
If you look at this line of code 235, you’ll see, that self.downsample is appiled on x, which differs from the output of self.bn2.