(self, x)
return h
r"""
        Feedforwards a batch of noise vectors into a batch of fake images.

        Args:
            x (Tensor): A batch of noise vectors of shape (N, nz).

        Returns:
            Tensor: A batch of fake images of shape (N, C, H, W).
r"""
        Feedforwards a batch of noise vectors into a batch of fake images.
r Feedforwards a batch of noise vectors into a batch of fake images .
def forward(self, x):
        r"""
        Feedforwards a batch of noise vectors into a batch of fake images.

        Args:
            x (Tensor): A batch of noise vectors of shape (N, nz).

        Returns:
            Tensor: A batch of fake images of shape (N, C, H, W).
        """
        h = self.l1(x)
        h = h.reshape(x.shape[0], -1, self.bottom_width, self.bottom_width)
        h = self.block2(h)
        h = self.block3(h)
        h = self.block4(h)
        h = self.b5(h)
        h = self.activation(h)
        h = F.tanh(self.c5(h))

        return h
def forward ( self , x ) : h = self . l1 ( x ) h = h . reshape ( x . shape [ 0 ] , - 1 , self . bottom_width , self . bottom_width ) h = self . block2 ( h ) h = self . block3 ( h ) h = self . block4 ( h ) h = self . b5 ( h ) h = self . activation ( h ) h = F . tanh ( self . c5 ( h ) ) return h