(self, name, in_channels, out_channels, scale)
return ResNetBlock(
        name=name,
        in_channels=in_channels,
        out_channels=out_channels,
        scale=scale,
        is_gen_block=True,
        spectral_norm=self._spectral_norm,
        batch_norm=self.batch_norm)
ResNet block for the generator.
ResNet block for the generator.
ResNet block for the generator .
def _resnet_block(self, name, in_channels, out_channels, scale):
    """ResNet block for the generator."""
    if scale not in ["up", "none"]:
      raise ValueError(
          "Unknown generator ResNet block scaling: {}.".format(scale))
    return ResNetBlock(
        name=name,
        in_channels=in_channels,
        out_channels=out_channels,
        scale=scale,
        is_gen_block=True,
        spectral_norm=self._spectral_norm,
        batch_norm=self.batch_norm)
def _resnet_block ( self , name , in_channels , out_channels , scale ) : if scale not in [ "up" , "none" ] : raise ValueError ( "Unknown generator ResNet block scaling: {}." . format ( scale ) ) return ResNetBlock ( name = name , in_channels = in_channels , out_channels = out_channels , scale = scale , is_gen_block = True , spectral_norm = self . _spectral_norm , batch_norm = self . batch_norm )