models/CycleGAN/model.py
def initialize_weights(layer: torch.nn.Module):
    """ Initialization suggested in the original DCGAN paper """
    layer_name = layer.__class__.__name__
    if 'Conv' in layer_name:
        layer: torch.nn.Conv2d = layer
        torch.nn.init.normal_(layer.weight.data, *CONV_INIT_NORMAL_PARAMS)
 Initialization suggested in the original DCGAN paper 
Initialization suggested in the original DCGAN paper
Initialization suggested in the original DCGAN paper
def initialize_weights(layer: torch.nn.Module):
    layer_name = layer.__class__.__name__
    if 'Conv' in layer_name:
        layer: torch.nn.Conv2d = layer
        torch.nn.init.normal_(layer.weight.data, *CONV_INIT_NORMAL_PARAMS)
def initialize_weights ( layer : torch . nn . Module ) : layer_name = layer . __class__ . __name__ if 'Conv' in layer_name : layer : torch . nn . Conv2d = layer torch . nn . init . normal_ ( layer . weight . data , * CONV_INIT_NORMAL_PARAMS )
Initialization suggested in the original DCGAN paper
Initialization suggested in the original DCGAN paper
""" Initialization suggested in the original DCGAN paper """
layer
torch.nn.Module