models/imagenet/resnet_cnsn.py [99:117]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        out = self.bn1(out)
        out = self.relu(out)

        out = self.conv2(out)
        out = self.bn2(out)
        out = self.relu(out)

        out = self.conv3(out)
        out = self.bn3(out)

        if self.downsample is not None:
            identity = self.downsample(x)

        if self.pos == 'residual':
            out = self.cnsn(out)
        elif self.pos == 'identity':
            identity = self.cnsn(identity)

        out += identity
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



models/imagenet/resnet_ibn_cnsn.py [102:120]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        out = self.bn1(out)
        out = self.relu(out)

        out = self.conv2(out)
        out = self.bn2(out)
        out = self.relu(out)

        out = self.conv3(out)
        out = self.bn3(out)

        if self.downsample is not None:
            identity = self.downsample(x)

        if self.pos == 'residual':
            out = self.cnsn(out)
        elif self.pos == 'identity':
            identity = self.cnsn(identity)

        out += identity
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



