(self, x)
return h
Helper function for feedforwarding through main layers.
Helper function for feedforwarding through main layers.
Helper function for feedforwarding through main layers .
def _residual(self, x):
        """
        Helper function for feedforwarding through main layers.
        """
        h = x
        h = self.activation(h)
        h = self.c1(h)
        h = self.activation(h)
        h = self.c2(h)
        if self.downsample:
            h = F.avg_pool2d(h, 2)

        return h
def _residual ( self , x ) : h = x h = self . activation ( h ) h = self . c1 ( h ) h = self . activation ( h ) h = self . c2 ( h ) if self . downsample : h = F . avg_pool2d ( h , 2 ) return h