(self, x)
Helper function for feedforwarding through shortcut layers.
Helper function for feedforwarding through shortcut layers.
Helper function for feedforwarding through shortcut layers .
def _shortcut(self, x):
        """
        Helper function for feedforwarding through shortcut layers.
        """
        if self.learnable_sc:
            x = self.c_sc(x)
            return F.avg_pool2d(x, 2) if self.downsample else x

        else:
            return x
def _shortcut ( self , x ) : if self . learnable_sc : x = self . c_sc ( x ) return F . avg_pool2d ( x , 2 ) if self . downsample else x else : return x